Skip to content

Commit

Permalink
Merge pull request #173 from frantic/packager-logs
Browse files Browse the repository at this point in the history
Manually start packager and print logs when tests fail
  • Loading branch information
vjeux committed Mar 20, 2015
2 parents 98097ca + 61d40c0 commit 980217c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,26 @@ before_install:
- brew update
- brew reinstall xctool
install:
- brew install watchman
- npm install
before_script:
- npm test
env:
- secure: "g8Xjbslq4R+3oLVgBvXM5QhiJ+7q+H+dH4+sXReyyZ64M5gf32U7oOjQNVkdx79dnGFc6a619otGsX4RiEkQlkiR+4uCgJUIgPwN4YFCIgYu4Z/0FnbbRu5yyywh5zv4WwGmAtMkgGztoMBnps5gCiPUM/RGIqwVk0Ghbmh5c2k="
- (npm start > packager.log 2>&1 &) && echo $! > packager.pid

script: ./build.sh 8.1

after_script:
- pkill -9 -F packager.pid
- cat packager.log
- rm packager.log
- rm packager.pid

# Automatically publish the website
after_success: '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && (cd website; npm install; ./setup.sh; ./publish.sh; echo) || echo'

env:
- secure: "g8Xjbslq4R+3oLVgBvXM5QhiJ+7q+H+dH4+sXReyyZ64M5gf32U7oOjQNVkdx79dnGFc6a619otGsX4RiEkQlkiR+4uCgJUIgPwN4YFCIgYu4Z/0FnbbRu5yyywh5zv4WwGmAtMkgGztoMBnps5gCiPUM/RGIqwVk0Ghbmh5c2k="

branches:
only:
- master

0 comments on commit 980217c

Please sign in to comment.