From d855fd1c042046329d1bee0287482584bc3643a0 Mon Sep 17 00:00:00 2001 From: jedireza Date: Mon, 27 Feb 2017 20:44:11 -0800 Subject: [PATCH 1/4] make test fail to help debug travis config --- tests/lib/arrays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/arrays.js b/tests/lib/arrays.js index 76b001ff3..e126ef9a1 100644 --- a/tests/lib/arrays.js +++ b/tests/lib/arrays.js @@ -11,6 +11,6 @@ describe('JsArray', function() { }); it('return a JsArray with an string at index 0', function () { - assert.deepEqual(["hello node"], addon.return_js_array_with_string()); + assert.deepEqual(["hello neon"], addon.return_js_array_with_string()); }); }); From b354c2bdf85bc2a116139787a50a936022bc87ce Mon Sep 17 00:00:00 2001 From: jedireza Date: Mon, 27 Feb 2017 20:51:21 -0800 Subject: [PATCH 2/4] change travis config to fail fast --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 99e7abf23..558ab0ec3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,10 +38,10 @@ matrix: allow_failures: - rust: nightly -script: -- | - (cd tests/ && npm test) +script: | + cd tests/ && + npm test && if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then - (cd compile_tests/ && cargo test) + cd compile_tests/ && + cargo test fi - From 6cdd204d8e269e4798ebc71109006a5cd9da6f5a Mon Sep 17 00:00:00 2001 From: jedireza Date: Mon, 27 Feb 2017 21:00:01 -0800 Subject: [PATCH 3/4] fix test to ensure build passes --- tests/lib/arrays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lib/arrays.js b/tests/lib/arrays.js index e126ef9a1..76b001ff3 100644 --- a/tests/lib/arrays.js +++ b/tests/lib/arrays.js @@ -11,6 +11,6 @@ describe('JsArray', function() { }); it('return a JsArray with an string at index 0', function () { - assert.deepEqual(["hello neon"], addon.return_js_array_with_string()); + assert.deepEqual(["hello node"], addon.return_js_array_with_string()); }); }); From b56ec421dfeecde963dc46ac926080eedc022862 Mon Sep 17 00:00:00 2001 From: jedireza Date: Mon, 27 Feb 2017 21:34:10 -0800 Subject: [PATCH 4/4] fix path for compile_tests --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 558ab0ec3..4ac156ee6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,6 +42,6 @@ script: | cd tests/ && npm test && if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then - cd compile_tests/ && + cd ../compile_tests/ && cargo test fi