Update .gitlab-ci.yml

This commit is contained in:
Mathieu Lagace
2018-09-24 18:14:24 +00:00
parent 1a321d1021
commit c162184035

View File

@@ -8,22 +8,29 @@ before_script:
- apt-get update -qq && apt-get install -y -qq sshpass - apt-get update -qq && apt-get install -y -qq sshpass
- apt-get install zip unzip - apt-get install zip unzip
- apt-get install git -yqq - 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 - sshpass -V
deploy_stage: build_stage:
stage: build stage: build
only:
- master
script: 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 storage
- chmod -R 777 bootstrap - chmod -R 777 bootstrap
- composer update - 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: deploy_697:
stage: deploy stage: deploy
only:
- master
environment: environment:
name: C697 name: C697
script: script:
@@ -33,6 +40,8 @@ deploy_697:
deploy_736: deploy_736:
stage: deploy stage: deploy
only:
- master
environment: environment:
name: C736 name: C736
script: script: