Skip to content

Commit

Permalink
Merge pull request #25 from asudoh/optional-each-components-test
Browse files Browse the repository at this point in the history
chore(travis): make one-component-by-one test optional
  • Loading branch information
chrisdhanaraj authored Apr 11, 2017
2 parents 8327f71 + 9caf92c commit 3065369
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ cache:
directories:
- node_modules

env:
- TEST_SUITE=misc
- TEST_SUITE=unit
- TEST_SUITE=unit-each
- TEST_SUITE=a11y

node_js:
- "6"

Expand All @@ -15,6 +21,13 @@ addons:
- google-chrome-stable
firefox: "latest-esr"

matrix:
exclude:
- env: TEST_SUITE=unit-each
allow_failures:
- env: TEST_SUITE=unit-each
- env: TEST_SUITE=a11y

before_install:
- if [[ -n "${AAT_TOKEN}" ]]; then sed -e "s|\${AAT_TOKEN}|$AAT_TOKEN|g" < .aat.yml.src > .aat.yml; fi
- tar -xjf /tmp/firefox-latest-esr.tar.bz2 --directory /tmp
Expand All @@ -29,11 +42,11 @@ install:
- npm i https://aat.mybluemix.net/dist/karma-ibma.tgz

script:
- npm run build
- npm run test:unit -- -b PhantomJS -b Chrome -b Firefox
- find tests/spec -name "*.js" ! -name left-nav_spec.js -print0 | xargs -0 -n 1 -P 1 npm run test:unit -- -d -f
- if [[ -n "${AAT_TOKEN}" ]]; then (npm run test:a11y || true); fi
- npm run lint
- if [[ "$TEST_SUITE" == "misc" ]]; then npm run build; fi
- if [[ "$TEST_SUITE" == "unit" ]]; then npm run test:unit -- -b PhantomJS -b Chrome -b Firefox; fi
- if [[ "$TEST_SUITE" == "unit-each" ]]; then find tests/spec -name "*.js" ! -name left-nav_spec.js -print0 | xargs -0 -n 1 -P 1 npm run test:unit -- -d -f; fi
- if [[ -n "${AAT_TOKEN}" && "$TEST_SUITE" == "a11y" ]]; then npm run test:a11y; fi
- if [[ "$TEST_SUITE" == "misc" ]]; then npm run lint; fi

after_success:
- npm run semantic-release
Expand Down

0 comments on commit 3065369

Please sign in to comment.