forked from LabShare-Archive/services-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (39 loc) · 932 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
28
29
30
31
32
33
34
35
36
37
38
39
language: node_js
dist: trusty
sudo: required
node_js:
- lts/*
- node
services:
- docker
before_install:
- |-
if [ $TRAVIS_PULL_REQUEST == false ] && [ $TRAVIS_BRANCH == "master" ];
then
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > ~/.npmrc;
else
echo "//registry.npmjs.org/:_authToken=\${NPM_INSTALL_TOKEN}" > ~/.npmrc;
fi
- 'git config --global url."[email protected]:".insteadOf "https://github.com/"'
- npm install -g @labshare/lsc codecov
- docker build -t services-cache ./run
- 'docker run -d -p 6379:6379 services-cache'
script:
- npm run build
- npm run test:ci
notifications:
email: false
branches:
except:
- /^v\d+\.\d+\.\d+$/
jobs:
include:
- stage: release
if: branch = master
node_js: lts/*
script: skip
deploy:
provider: script
skip_cleanup: true
script:
- npm run semantic-release