File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 4
4
directories :
5
5
- node_modules
6
6
7
+ env :
8
+ - TEST_SUITE=misc
9
+ - TEST_SUITE=unit
10
+ - TEST_SUITE=unit-each
11
+ - TEST_SUITE=a11y
12
+
7
13
node_js :
8
14
- " 6"
9
15
@@ -15,6 +21,13 @@ addons:
15
21
- google-chrome-stable
16
22
firefox : " latest-esr"
17
23
24
+ matrix :
25
+ exclude :
26
+ - env : TEST_SUITE=unit-each
27
+ allow_failures :
28
+ - env : TEST_SUITE=unit-each
29
+ - env : TEST_SUITE=a11y
30
+
18
31
before_install :
19
32
- if [[ -n "${AAT_TOKEN}" ]]; then sed -e "s|\${AAT_TOKEN}|$AAT_TOKEN|g" < .aat.yml.src > .aat.yml; fi
20
33
- tar -xjf /tmp/firefox-latest-esr.tar.bz2 --directory /tmp
@@ -29,11 +42,11 @@ install:
29
42
- npm i https://aat.mybluemix.net/dist/karma-ibma.tgz
30
43
31
44
script :
32
- - npm run build
33
- - npm run test:unit -- -b PhantomJS -b Chrome -b Firefox
34
- - find tests/spec -name "*.js" ! -name left-nav_spec.js -print0 | xargs -0 -n 1 -P 1 npm run test:unit -- -d -f
35
- - if [[ -n "${AAT_TOKEN}" ]]; then ( npm run test:a11y || true) ; fi
36
- - npm run lint
45
+ - if [[ "$TEST_SUITE" == "misc" ]]; then npm run build; fi
46
+ - if [[ "$TEST_SUITE" == "unit" ]]; then npm run test:unit -- -b PhantomJS -b Chrome -b Firefox; fi
47
+ - 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
48
+ - if [[ -n "${AAT_TOKEN}" && "$TEST_SUITE" == "a11y" ]]; then npm run test:a11y; fi
49
+ - if [[ "$TEST_SUITE" == "misc" ]]; then npm run lint; fi
37
50
38
51
after_success :
39
52
- npm run semantic-release
You can’t perform that action at this time.
0 commit comments