-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (51 loc) · 2.64 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
language: node_js
node_js:
- '8'
cache:
directories:
- node_modules
env:
global:
secure: DzMr6L72ViJQAnnGMHs0U+hv228iOWWKrOPVumQWOkX0I4bJtPqB0TioC8he8E2N3TVyRDViwUSUR8pFfu1Pgh9hpk5qyAa85kHpMwBaoqxq219YCIelC+ILOSWULtNWz+xjgEmGTSO6Oa8OLzDkAbBziapQKoYsio2F5Fl/idfM2GFpz33rkCahKkx1HiiAG16K3Cxd28UfXtE9+ceBZcxHUfu1n2fi0P7GNQjM3gylW/asSvxccTaMbc/vqcUmwjsiKSvuGcxFQaDY6zO+YGwhDodQTNm1KTisby/hZnioJ2e8lIQ3or58mHaKV99Q15I1A+/5kUrzc4m9IjdPyugmtxHCMLTbrM+iAMgmDVSSNtJQM6nOmq1nKZFDRq0AjOES6zblAdAmGgPRvzy3ybgsPr5Wyhcy6JJS0nLXfOxVMfpmVD9H5N9iGvuRUZAkQyh59dOrNJvwN8UwkLkphYtaiXhpJaW2magS/tB8MnHbb67Mx5UazKT6BQzRi1bLrbwWjmQbrOO25GgLw0qPvloPiDBcViiNqC225q8N7N3GQTqrn1LXH9N1oNjd8APX2VCAZ9Od0UNDdx06Ky1h4on3uyguYt+o9xUvPyhLJsT0fFX4mncaT3CxioW5nZepRbKkoHjzPwbv1FtMuONvDFJyizbsI+MalQn/Nqsh+IU=
stages:
- install
- unit-test
- integration-test
- name: tag
if: branch = master
- name: deploy
if: tag =~ ^([0-9]\.){2}[0-9].*$
jobs:
include:
- stage: install
script:
- npm install
- stage: unit-test
script:
- npm run test:coverage
- npm install coveralls && nyc report --reporter=text-lcov | coveralls
- stage: integration-test
script:
- npm run test:integration:setup
- npm run test:integration
- npm run test:integration:teardown
- stage: tag
before_script:
- git config --global user.email ""
- git config --global user.name "Travis-CI"
script:
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GH_TOKEN}:@github.com" > .git/credentials
- VERSION=$(cat package.json | jq -r .version)
- if [ -z $(git tag -l $VERSION) ]; then git tag $VERSION && git push --tags ; fi
- stage: deploy
script: skip
deploy:
provider: npm
email: [email protected]
api_key:
secure: cesRM2sFgtdcv5IUpUc7jRPUSFSvnIWsC/tGLxdfwlTcYHROrMcpF+5Di6UozdeBvINS+1VOKTLE9Hv2hDabWNdrs1XP1DRioUam+zB4p7SsnkhIuc5OJ7a5pnw0Kj9bHTZxUSDpzvDZBVOFsDYn4yZZUxwdXUwsJJ3u11sOUTsb+eyYTX7BhQ+hncBUieFhew0kRq4MoQAg3xlXYPaXtaY2mwkB0+BqtTZWveZUG4obBmm6MkoUfDRtmmcaMhGuKNpi7VCrAjG+NAtltZQemjijtyYeC29dI8/QNGy40gxJTaIE0G3ge8hCCg+PS948Z+tJQIT8Ig+pWHR+9M6t8W9eengbQ4uUIrIhomIbaYS1PAu7C1gUx5LfcXBuw0dka3bg3oMzlsR1NRUJN7ZZrvKU7fiawoEIKYhM5hX+to9LiV8MB84XCg1z1Z7VPRBKpKFlmsi7K7iuOmTxFKZrK2nspWfEU0mHExVD/OAP1PavlHI6mZ5X8irrNExsGWNzTW8AnBw4h8nccx+ZQ1CPwZsSXpts+RXiBN/nInhpoo/S2AvZzhYTgs5cpc0Ukf8Oqy7AMgC3WTSGFGWMQUZ1y3llybC+4FQVXHsHJEQXQCpf2jPUqoBRGgtyio4blBbDsIMUnprydEKrF2DWd3l56dvr6WW0yVfNJnw8nXwzwHY=
on:
tags: true
repo: iamcdonald/pckr
if: tag =~ ^([0-9]\.){2}[0-9].*$