forked from abraham/nutmeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1.08 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
# Work-around for https://github.com/travis-ci/travis-ci/issues/8836
sudo: true
language: node_js
node_js:
- node
- 8
env:
- PKG_ENV=npm
- PKG_ENV=yarn
before_install:
- if [[ "$PKG_ENV" == "yarn" ]]; then curl -o- -L https://yarnpkg.com/install.sh | bash; fi
- if [[ "$PKG_ENV" == "yarn" ]]; then export PATH=$HOME/.yarn/bin:$PATH; fi
before_script:
- node --version
- if [[ "$PKG_ENV" == "npm" ]]; then npm --version; fi
- if [[ "$PKG_ENV" == "npm" ]]; then npm install; fi
- if [[ "$PKG_ENV" == "npm" ]]; then npm install --global . --no-optional; fi
- if [[ "$PKG_ENV" == "yarn" ]]; then yarn --version; fi
- if [[ "$PKG_ENV" == "yarn" ]]; then yarn install; fi
- if [[ "$PKG_ENV" == "yarn" ]]; then yarn build; fi
- if [[ "$PKG_ENV" == "yarn" ]]; then yarn global add file:$PWD; fi
- if [[ "$PKG_ENV" == "yarn" ]]; then yarn pretest; fi
script:
- if [[ "$PKG_ENV" == "npm" ]]; then npm run test; fi
- if [[ "$PKG_ENV" == "yarn" ]]; then yarn run test:yarn; fi
os:
- linux
cache:
yarn: true
directories:
- node_modules
addons:
firefox: latest
chrome: stable