|
|
@@ -27,9 +27,9 @@ test:
|
|
|
- testwas
|
|
|
script:
|
|
|
- echo "run test....."
|
|
|
- - path=`pwd`
|
|
|
- - sudo bash ci/judgePush.sh $path
|
|
|
- - vendor/bin/phpunit --testsuite=Unit
|
|
|
+# - path=`pwd`
|
|
|
+# - sudo bash ci/judgePush.sh $path
|
|
|
+# - vendor/bin/phpunit --testsuite=Unit
|
|
|
# TODO 给master用户发送邮件
|
|
|
|
|
|
test_failed:
|
|
|
@@ -38,9 +38,9 @@ test_failed:
|
|
|
- testwas
|
|
|
script:
|
|
|
- echo "run test failed_1"
|
|
|
- - user=`sudo git log --pretty=format:"%cn" -1`
|
|
|
- - echo "$user"
|
|
|
- - sudo bash ci/sendEmail.sh $user
|
|
|
+# - user=`sudo git log --pretty=format:"%cn" -1`
|
|
|
+# - echo "$user"
|
|
|
+# - sudo bash ci/sendEmail.sh $user
|
|
|
# TODO 发送失败邮件
|
|
|
when: on_failure
|
|
|
|
|
|
@@ -50,8 +50,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
|
|
|
- only:
|
|
|
- - master
|
|
|
+# - cd /var/www/bswas_test && sudo git config --global credential.helper store
|
|
|
+# - sudo git pull
|
|
|
+# - sudo bash ci/executeCommand.sh
|
|
|
+# only:
|
|
|
+# - master
|