travis-ci
与github紧密联系的自动化持续集成工具。需要注意的是它仅是一个测试工具,并不能代替webhook的功能。
.travis.yml文件
travis.yml
是travis-ci的配置文件,具体语法如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| sudo: required dist: trusty
notifications: email: - haoflynet@gmail.com
addons: apt: sources: - google-chrome packages: - google-chrome-stable
branches: only: - master
language: node_js node_js: '4' '6'
before_install: - nvm install 6.0.0 install: npm install
before_script: - npm install - cd tests
script: phpunit -v
after_failure: - cat /home/travis/build/haoflynet/haoflynet-repo/abc.log after_success: - ... before_deploy: - ... deploy: provider: script script: ci/deploy.sh skip_cleanup: true after_deploy: - ...
|