diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9eda5d12..5249b098 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,22 +8,29 @@ before_script: - apt-get update -qq && apt-get install -y -qq sshpass - apt-get install zip unzip - apt-get install git -yqq -- curl -sS https://getcomposer.org/installer | php -- php composer.phar install -- mv composer.phar /usr/local/bin/composer - sshpass -V -deploy_stage: +build_stage: stage: build - only: - - master script: + - curl -sS https://getcomposer.org/installer | php + - php composer.phar install + - mv composer.phar /usr/local/bin/composer - chmod -R 777 storage - chmod -R 777 bootstrap - composer update +test_stage: + stage: test + script: + - curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar + - chmod +x /usr/local/bin/phpunit + - phpunit --configuration phpunit.xml + deploy_697: stage: deploy + only: + - master environment: name: C697 script: @@ -33,6 +40,8 @@ deploy_697: deploy_736: stage: deploy + only: + - master environment: name: C736 script: