mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -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 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:
|
||||
|
||||
Reference in New Issue
Block a user