This repository has been archived by the owner on Jul 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
68 lines (68 loc) · 4.27 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: node_js
node_js:
- node
- '8'
sudo: false
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
- export PATH=$HOME/.yarn/bin:$PATH
- export BRANCH="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
- yarn global add greenkeeper-lockfile@1 codecov
- if [[ -v CODACY_PROJECT_TOKEN ]]; then yarn global add codacy-coverage; fi
cache: false
install:
- |
if [[ $BRANCH == "greenkeeper/"* ]]; then
echo Greenkeeper build; yarn install;
else
echo Normal build - frozen lockfile; yarn install --frozen-lockfile;
fi
before_script: greenkeeper-lockfile-update
script:
- yarn test
- yarn nyc report --reporter=lcov && codecov
- |
if [[ -v CODACY_PROJECT_TOKEN ]]; then
cat ./coverage/lcov.info | codacy-coverage ;
fi
after_script: greenkeeper-lockfile-upload
stages:
- name: test
- name: deploy
if: tag =~ ^v AND fork = false AND type = push
jobs:
include:
- stage: test
if: type = cron
node_js: '8'
os: osx
osx_image: xcode9.2
- stage: test
if: type = cron
node_js: '7'
- stage: test
if: type = cron OR tag =~ ^v
node_js: '6'
- stage: deploy
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
- export PATH=$HOME/.yarn/bin:$PATH
install: []
before_script: []
script:
- yarn install --frozen-lockfile
- yarn test
after_script: []
deploy:
provider: npm
email: [email protected]
skip_cleanup: true
api_key: "$NPM_API_KEY"
on:
tags: true
env:
global:
- secure: d08u+cBSeffYJ3ALC0wI5CI4AF/boNJ3TNtyVSZ0ZNm9VLb2LKUXt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