|
|
@@ -2,17 +2,18 @@ stages:
|
|
|
- test
|
|
|
|
|
|
before_script:
|
|
|
- - apt-get -qq update
|
|
|
- - apt-get -qq install --yes zip unzip
|
|
|
- - curl --silent https://composer.github.io/installer.sig > installer.sig
|
|
|
- - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
|
- - php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
|
- - php composer-setup.php
|
|
|
- - php -r "unlink('composer-setup.php'); unlink('installer.sig');"
|
|
|
+ - apt-get -yqq update
|
|
|
+ - apt-get -yqq install zip unzip
|
|
|
+ - curl -sS https://composer.github.io/installer | php
|
|
|
+
|
|
|
+cache:
|
|
|
+ paths:
|
|
|
+ - vendor/
|
|
|
+ - ./ot_core/.Build/vendor
|
|
|
|
|
|
unit_otcore:
|
|
|
stage: test
|
|
|
|
|
|
script:
|
|
|
- php composer.phar --quiet --no-interaction --working-dir=./ot_core install
|
|
|
- - ./ot_core/.Build/bin/phpunit -c ./ot_core/Tests/Build/UnitTests.xml
|
|
|
+ - ./ot_core/.Build/bin/phpunit -c ./ot_core/Tests/Build/UnitTests.xml --coverage-text
|