forked from cerebral/overmind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (47 loc) · 1.31 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
sudo: false
language: node_js
node_js: '8'
install:
- travis_wait npm ci
cache:
directories:
- '$HOME/.npm'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# needed by nodegit (repo-cooker)
- libstdc++-4.9-dev
git:
depth: 9999
notifications:
email: false
before_install: dpkg --compare-versions `npm -v` ge 6.11.3 || npm i -g npm@^6.11.3
script:
- |
if [[ $SKIP_TESTS != 'true' ]]; then
npm prune
npm run checkdeps
npm run lint
npm test -- --no-parallel
fi
after_success:
- |
if [[ $TRAVIS_SECURE_ENV_VARS == 'true' ]]; then
git remote set-url origin https://cerebraljs:${REPO_COOKER_GITHUB_TOKEN}@github.com/cerebral/overmind;
git config --global user.email "[email protected]";
git config --global user.name "Cerebral JS";
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
if [[ $TRAVIS_BRANCH == 'master' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
npm install --no-save vsce
npm run release:vscode
fi
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"