-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (41 loc) · 1.01 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
sudo: false
language: node_js
node_js: '14'
cache:
directories:
- 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 run checkdeps
npm run build
npm run test
fi
after_success:
- |
if [[ $TRAVIS_SECURE_ENV_VARS == 'true' ]]; then
git remote set-url origin https://pawi-bot:${GH_TOKEN}@github.com/pawijs/pawi
git config --global user.email "[email protected]"
git config --global user.name "Maia Taewana"
fi
if [[ $TRAVIS_BRANCH == 'main' || $TRAVIS_BRANCH == 'next' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
printf "//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" > ~/.npmrc
printf "$VSCE_TOKEN\n" > ~/.vsce
npm install -g vsce
# npm install --no-save nodegit
npm run release
fi
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"