forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (29 loc) · 895 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: node_js
cache:
directories:
- node_modules
node_js:
- "6"
dist: trusty
addons:
apt:
packages:
- google-chrome-stable
firefox: "latest-esr"
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
- export PATH="/tmp/firefox:$PATH"
- export CHROME_BIN=google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm prune
- npm install || (cat npm-debug.log; false)
- 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