|
|
@@ -11,8 +11,8 @@ cache:
|
|
|
|
|
|
before_script:
|
|
|
#配置环境
|
|
|
- - sudo cp ci/.envCi .env
|
|
|
- - sudo bash ci/installEnv.sh
|
|
|
+# - sudo cp ci/.envCi .env
|
|
|
+# - sudo bash ci/installEnv.sh
|
|
|
|
|
|
build:
|
|
|
stage: build
|
|
|
@@ -27,10 +27,10 @@ test:
|
|
|
- testwas
|
|
|
script:
|
|
|
- echo "run test....."
|
|
|
- - path=`pwd`
|
|
|
- - sudo bash ci/judgePush.sh $path
|
|
|
- - php vendor/bin/phpunit --testsuite=Services
|
|
|
- - sudo bash ci/sendEmail.sh
|
|
|
+# - path=`pwd`
|
|
|
+# - sudo bash ci/judgePush.sh $path
|
|
|
+# - php vendor/bin/phpunit --testsuite=Services
|
|
|
+# - sudo bash ci/sendEmail.sh
|
|
|
|
|
|
test_failed:
|
|
|
stage: test_failed
|
|
|
@@ -38,8 +38,8 @@ test_failed:
|
|
|
- testwas
|
|
|
script:
|
|
|
- echo "run test failed_1"
|
|
|
- - email=`sudo git log --pretty=format:"%ce" -1`
|
|
|
- - sudo bash ci/sendEmail.sh $email
|
|
|
+# - email=`sudo git log --pretty=format:"%ce" -1`
|
|
|
+# - sudo bash ci/sendEmail.sh $email
|
|
|
when: on_failure
|
|
|
|
|
|
deploy:
|
|
|
@@ -48,8 +48,8 @@ deploy:
|
|
|
- testwas
|
|
|
script:
|
|
|
- echo "deploy ...."
|
|
|
-# - cd /var/www/bswas_test && sudo git config --global credential.helper store
|
|
|
-# - sudo git pull
|
|
|
-# - sudo bash ci/executeCommand.sh
|
|
|
+ - cd /var/www/bswas_test && sudo git config --global credential.helper store
|
|
|
+ - sudo git pull
|
|
|
+ - sudo bash ci/executeCommand.sh
|
|
|
# only:
|
|
|
# - master
|