...
 
Commits (4)
image: composer:1
cache:
paths:
- docs/cache/
- vendor/
stages:
- test
- build
- deploy
build:
stage: build
script:
- composer install
- sh sbin/generate_documentation.sh
test:
stage: test
before_script:
- cp .php_cs.dist .php_cs
script:
- sh sbin/php-cs-fixer.sh --dry-run --diff
deploy:
stage: deploy
variables:
REMOTE_HOST: "${REMOTE_USER}@${REMOTE_HOSTNAME}"
before_script:
# Remote target configuration
- cp remote.env.dist remote.env
- sed -i "s|TARGET_HOST=.*|TARGET_HOST=$REMOTE_HOST|g" remote.env
- sed -i "s|TARGET_PATH=.*|TARGET_PATH=$REMOTE_PATH|g" remote.env
- sed -i "s|TARGET_PORT=.*|TARGET_PORT=$REMOTE_PORT|g" remote.env
- cat remote.env
# Environment configuration
- apk add rsync --update
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add -
- ssh-keyscan -p ${REMOTE_PORT} ${REMOTE_HOSTNAME} >> ~/.ssh/known_hosts
script:
- find . -type d -exec chmod 755 {} \;
- sh sbin/deploy.sh
only:
- master
......@@ -10,6 +10,18 @@ Version numbers are based on [Semantic Versioning](https://semver.org).
## [4.4.0] - 2019-05-18
### Added
- Support for Gitlab CI
### Updated
- Use optimized composer autoloader for production
## [4.3.4] - 2019-05-18
### Updated
......
[![license](https://img.shields.io/github/license/eliashaeussler/api.svg)](LICENSE)
[![release](https://img.shields.io/github/release/eliashaeussler/api.svg)](https://github.com/eliashaeussler/api/releases/)
[![pipeline status](http://gitlab.elias-haeussler.de/eliashaeussler/api/badges/master/pipeline.svg)](http://gitlab.elias-haeussler.de/eliashaeussler/api/commits/master)
# elias-haeussler.de API
......
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../../../../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../../../../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../../../../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../../../../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../../../../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option>
</select>
</form>
......
C:19:"Sami\Renderer\Index":2025:{a:3:{i:0;a:14:{s:44:"EliasHaeussler\Api\Controller\BaseController";s:40:"9fb3c6d8a0f342edad52958875cb397773782d3c";s:45:"EliasHaeussler\Api\Controller\SlackController";s:40:"d4b75dc454a744757d014cc271499621cb414e0f";s:52:"EliasHaeussler\Api\Exception\AuthenticationException";s:40:"562a24b5039ce6488aaa2dbf3d9d9f0f18e4f052";s:51:"EliasHaeussler\Api\Exception\ClassNotFoundException";s:40:"2fb2d839a242a9186fa5f79891269a80a580096d";s:53:"EliasHaeussler\Api\Exception\EmptyControllerException";s:40:"15d512ca5ca62453e4af9323e06751591f5873fd";s:53:"EliasHaeussler\Api\Exception\EmptyParametersException";s:40:"4703405334ca8ea65fbb2fa71fafd0b56a77732a";s:55:"EliasHaeussler\Api\Exception\InvalidControllerException";s:40:"fc1ba4d967aa2eaef69e8362563d0448cfcf0bf7";s:52:"EliasHaeussler\Api\Exception\InvalidRequestException";s:40:"7b5b6414920f7780505b7c25ce5695bf4111811c";s:35:"EliasHaeussler\Api\Frontend\Message";s:40:"0dc7d149a4a62cd3d1850510a0a43b65d25af4c1";s:36:"EliasHaeussler\Api\Frontend\Template";s:40:"9f781eaf7352bb624a120bb49b932f295f35b980";s:36:"EliasHaeussler\Api\Routing\BaseRoute";s:40:"883b4abe0866cb8fbff5b51c3a8a8d3786bb5594";s:50:"EliasHaeussler\Api\Routing\Slack\LunchCommandRoute";s:40:"9fcfcc05838d8a3e9ed480986a7a797c1403db1f";s:41:"EliasHaeussler\Api\Utility\GeneralUtility";s:40:"71eb3bd081e1bd94c7bef72d2aaff1af552491f0";s:41:"EliasHaeussler\Api\Utility\RoutingUtility";s:40:"721be010933ef1c79fcfb8f2445625ec4cbd617f";}i:1;a:16:{i:0;s:5:"1.0.0";i:1;s:5:"2.0.0";i:2;s:5:"3.0.0";i:3;s:5:"3.1.0";i:4;s:5:"4.0.0";i:5;s:5:"4.0.1";i:6;s:5:"4.0.2";i:7;s:5:"4.1.0";i:8;s:5:"4.1.1";i:9;s:5:"4.2.0";i:10;s:5:"4.3.0";i:11;s:5:"4.3.1";i:12;s:5:"4.3.2";i:13;s:5:"4.3.3";i:14;s:5:"4.3.4";i:15;s:6:"master";}i:2;a:8:{i:0;s:14:"EliasHaeussler";i:1;s:18:"EliasHaeussler\Api";i:2;s:29:"EliasHaeussler\Api\Controller";i:3;s:28:"EliasHaeussler\Api\Exception";i:4;s:27:"EliasHaeussler\Api\Frontend";i:5;s:26:"EliasHaeussler\Api\Routing";i:6;s:32:"EliasHaeussler\Api\Routing\Slack";i:7;s:26:"EliasHaeussler\Api\Utility";}}}
\ No newline at end of file
C:19:"Sami\Renderer\Index":2042:{a:3:{i:0;a:14:{s:44:"EliasHaeussler\Api\Controller\BaseController";s:40:"9fb3c6d8a0f342edad52958875cb397773782d3c";s:45:"EliasHaeussler\Api\Controller\SlackController";s:40:"d4b75dc454a744757d014cc271499621cb414e0f";s:52:"EliasHaeussler\Api\Exception\AuthenticationException";s:40:"562a24b5039ce6488aaa2dbf3d9d9f0f18e4f052";s:51:"EliasHaeussler\Api\Exception\ClassNotFoundException";s:40:"2fb2d839a242a9186fa5f79891269a80a580096d";s:53:"EliasHaeussler\Api\Exception\EmptyControllerException";s:40:"15d512ca5ca62453e4af9323e06751591f5873fd";s:53:"EliasHaeussler\Api\Exception\EmptyParametersException";s:40:"4703405334ca8ea65fbb2fa71fafd0b56a77732a";s:55:"EliasHaeussler\Api\Exception\InvalidControllerException";s:40:"fc1ba4d967aa2eaef69e8362563d0448cfcf0bf7";s:52:"EliasHaeussler\Api\Exception\InvalidRequestException";s:40:"7b5b6414920f7780505b7c25ce5695bf4111811c";s:35:"EliasHaeussler\Api\Frontend\Message";s:40:"0dc7d149a4a62cd3d1850510a0a43b65d25af4c1";s:36:"EliasHaeussler\Api\Frontend\Template";s:40:"9f781eaf7352bb624a120bb49b932f295f35b980";s:36:"EliasHaeussler\Api\Routing\BaseRoute";s:40:"883b4abe0866cb8fbff5b51c3a8a8d3786bb5594";s:50:"EliasHaeussler\Api\Routing\Slack\LunchCommandRoute";s:40:"9fcfcc05838d8a3e9ed480986a7a797c1403db1f";s:41:"EliasHaeussler\Api\Utility\GeneralUtility";s:40:"71eb3bd081e1bd94c7bef72d2aaff1af552491f0";s:41:"EliasHaeussler\Api\Utility\RoutingUtility";s:40:"721be010933ef1c79fcfb8f2445625ec4cbd617f";}i:1;a:17:{i:0;s:5:"1.0.0";i:1;s:5:"2.0.0";i:2;s:5:"3.0.0";i:3;s:5:"3.1.0";i:4;s:5:"4.0.0";i:5;s:5:"4.0.1";i:6;s:5:"4.0.2";i:7;s:5:"4.1.0";i:8;s:5:"4.1.1";i:9;s:5:"4.2.0";i:10;s:5:"4.3.0";i:11;s:5:"4.3.1";i:12;s:5:"4.3.2";i:13;s:5:"4.3.3";i:14;s:5:"4.3.4";i:15;s:5:"4.4.0";i:16;s:6:"master";}i:2;a:8:{i:0;s:14:"EliasHaeussler";i:1;s:18:"EliasHaeussler\Api";i:2;s:29:"EliasHaeussler\Api\Controller";i:3;s:28:"EliasHaeussler\Api\Exception";i:4;s:27:"EliasHaeussler\Api\Frontend";i:5;s:26:"EliasHaeussler\Api\Routing";i:6;s:32:"EliasHaeussler\Api\Routing\Slack";i:7;s:26:"EliasHaeussler\Api\Utility";}}}
\ No newline at end of file
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option>
</select>
</form>
......
......@@ -40,6 +40,7 @@
<option value="../4.3.2/index.html" data-version="4.3.2">4.3.2</option>
<option value="../4.3.3/index.html" data-version="4.3.3">4.3.3</option>
<option value="../4.3.4/index.html" data-version="4.3.4">4.3.4</option>
<option value="../4.4.0/index.html" data-version="4.4.0">4.4.0</option>
<option value="../master/index.html" data-version="master">master</option> <