forked from alfa-laboratory/arui-feather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (53 loc) · 1.33 KB
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
dist: trusty
language: node_js
node_js:
- '7.4.0'
env:
matrix:
- TEST_SCOPE: lint
- TEST_SCOPE: desktop_unit
- TEST_SCOPE: mobile_unit
- TEST_SCOPE: gemini
matrix:
fast_finish: true
before_install:
- yarn global add greenkeeper-lockfile@1
install:
- yarn install
before_script:
- greenkeeper-lockfile-update
- |
if [ "${TEST_SCOPE}" == "gemini" ]; then
sh ./tools/sauce-connect.sh
cat .gemini.js
fi
script:
- if [ "${TEST_SCOPE}" == "lint" ]; then yarn lint; fi
- if [ "${TEST_SCOPE}" == "desktop_unit" ]; then yarn test; fi
- if [ "${TEST_SCOPE}" == "mobile_unit" ]; then MOBILE=1 yarn test; fi
- if [ "${TEST_SCOPE}" == "gemini" ]; then
if [ "${TRAVIS_EVENT_TYPE}" == "cron" ]; then export ALL_BROWSERS=1 ALL_SIZES=1; fi;
yarn gemini-ci;
fi
after_script:
- greenkeeper-lockfile-upload
- |
if [ "${TEST_SCOPE}" == "lint" ] && [ -n "${TRAVIS_TAG}" ]; then
yarn github-release;
fi
- |
if [ "${TEST_SCOPE}" == "gemini" ]; then
kill -9 `lsof -i :4445 -t`
fi
after_success:
- |
if [ "${TRAVIS_BRANCH}" == "master" ]; then
if [ "${TEST_SCOPE}" == "lint" ]; then
sh ./tools/publish-styleguide.sh
fi
fi
after_failure:
- |
if [ "${TEST_SCOPE}" == "gemini" ]; then
sh ./tools/publish-gemini-report.sh
fi