diff --git a/.travis.yml b/.travis.yml index a9f51d6be579..3dfe0dfc4f35 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" @@ -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 @@ -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