|
@@ -27,9 +27,10 @@ test:
|
|
|
- testwas
|
|
- testwas
|
|
|
script:
|
|
script:
|
|
|
- echo "run test....."
|
|
- echo "run test....."
|
|
|
-# - path=`pwd`
|
|
|
|
|
-# - sudo bash ci/judgePush.sh $path
|
|
|
|
|
|
|
+ - path=`pwd`
|
|
|
|
|
+ - sudo bash ci/judgePush.sh $path
|
|
|
# - vendor/bin/phpunit --testsuite=Unit
|
|
# - vendor/bin/phpunit --testsuite=Unit
|
|
|
|
|
+ - php vendor/bin/phpunit --testsuite=Services
|
|
|
# TODO 给master用户发送邮件
|
|
# TODO 给master用户发送邮件
|
|
|
|
|
|
|
|
test_failed:
|
|
test_failed:
|
|
@@ -38,8 +39,8 @@ test_failed:
|
|
|
- testwas
|
|
- testwas
|
|
|
script:
|
|
script:
|
|
|
- echo "run test failed_1"
|
|
- echo "run test failed_1"
|
|
|
-# - user=`sudo git log --pretty=format:"%ce" -1`
|
|
|
|
|
-# - echo "$user"
|
|
|
|
|
|
|
+ - user=`sudo git log --pretty=format:"%ce" -1`
|
|
|
|
|
+ - echo "$user"
|
|
|
# - sudo bash ci/sendEmail.sh $user
|
|
# - sudo bash ci/sendEmail.sh $user
|
|
|
# TODO 发送失败邮件
|
|
# TODO 发送失败邮件
|
|
|
when: on_failure
|
|
when: on_failure
|