forked from ATIX-AG/foreman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #17248 - Run js tests with node versions we use
Our package builders and test infrastracture use different versions of nodejs. We should check that all js tests pass for all different versions used, to prevent breakage in any of our supported OSes.
- Loading branch information
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
language: node_js | ||
node_js: | ||
- "node" | ||
- "4" # Fedora | ||
#- "0.10" # EL6, Trusty, Jessie - sadly, jest does not work with 0.10 | ||
- "4.2" # Xenial | ||
- "4.6" # Fedora 24 | ||
- "6.9" # EL 7 | ||
before_install: | ||
npm install -g npm@'>=3.0.0' | ||
script: ./script/travis_run_js_tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
set -ev | ||
if [[ $( git diff --name-only HEAD~1..HEAD webpack/ | wc -l ) -ne 0 ]]; then | ||
if [[ $( git diff --name-only HEAD~1..HEAD webpack/ .travis.yml package.json | wc -l ) -ne 0 ]]; then | ||
npm run test; | ||
fi |