From c1621840351c8cc4158bc5382d34f2e6d9331f03 Mon Sep 17 00:00:00 2001 From: Mathieu Lagace Date: Mon, 24 Sep 2018 18:14:24 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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: