From 6f727bc811aa5f96919baca9af2704e5d847e614 Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Fri, 20 Mar 2015 14:34:34 -0700 Subject: [PATCH 1/3] Manually start packager and print logs when tests fail --- .travis.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4d290f162e4de6..a3b4ab19589f0c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,24 @@ before_install: - brew reinstall xctool install: - 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 `cat 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 From aa4520345b33e9aadf818014eb12d9e0f4060854 Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Fri, 20 Mar 2015 14:52:23 -0700 Subject: [PATCH 2/3] Use watchman on Travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a3b4ab19589f0c..bb48245fbec33c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ before_install: - brew update - brew reinstall xctool install: + - brew install watchman - npm install before_script: - npm test From 61d40c04a2767f4f2efce5132a138fd84d9d8155 Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Fri, 20 Mar 2015 15:05:54 -0700 Subject: [PATCH 3/3] Use -F instead of cat --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bb48245fbec33c..4af3669f215fee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_script: script: ./build.sh 8.1 after_script: - - pkill -9 `cat packager.pid` + - pkill -9 -F packager.pid - cat packager.log - rm packager.log - rm packager.pid