-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.14 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
sudo: false
language: node_js
node_js: '10'
install:
- npm install
cache:
directories:
- '$HOME/.npm'
- node_modules
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# needed by nodegit (repo-cooker)
- libstdc++-4.9-dev
git:
depth: 9999
notifications:
email: false
script:
- |
if [[ $SKIP_TESTS != 'true' ]]; then
npm prune
npm run deps:check
npm run typecheck
npm run lint
npm test
fi
after_success:
- |
if [[ $TRAVIS_SECURE_ENV_VARS == 'true' ]]; then
git remote set-url origin https://fmal:${GH_TOKEN}@github.com/fmal/monorepo;
git config --global user.email "[email protected]";
fi
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_PULL_REQUEST == 'true' ]]; then
npx codecov -t $CODECOV_TOKEN
fi
if [[ $TRAVIS_BRANCH == 'master' || $TRAVIS_BRANCH == 'next' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
printf "//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" >> ~/.npmrc
npm install --no-save [email protected]
npm run release -- --no-parallel --print-release
fi
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"