mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-22 11:09:11 -04:00
Update .gitlab-ci.yml
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user