-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
27 lines (27 loc) · 896 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
language: node_js
sudo: required
node_js:
- node
cache: yarn
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"
jobs:
include:
- stage: test
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
before_script: >-
[ "${TRAVIS_OS_NAME}" == 'linux' ] &&
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
script: >-
yarn run-s lint test:coverage coveralls build:prod e2e:ci
addons:
chrome: stable
- stage: deploy
if: (branch = master) AND (env(RELEASE_BUILD) = true)
script: >-
git fetch --unshallow &&
git checkout "${TRAVIS_BRANCH}" &&
git remote set-url --push origin "https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}" &&
yarn release:local