1 | language: node_js
|
2 | cache: npm
|
3 |
|
4 |
|
5 |
|
6 | branches:
|
7 | only:
|
8 | - master
|
9 | - /^greenkeeper.*$/
|
10 |
|
11 | jobs:
|
12 | include:
|
13 | - stage: test
|
14 | node_js: 8
|
15 | - node_js: 10
|
16 | - node_js: lts/*
|
17 | after_script:
|
18 | - npm run coverage:upload
|
19 | - stage: release
|
20 | env: semantic-release
|
21 | node_js: lts/*
|
22 | script: npx semantic-release
|
23 |
|
24 |
|
25 |
|
26 | - stage: greenkeeper-routes-update
|
27 | node_js: lts/*
|
28 | script:
|
29 | - git checkout $TRAVIS_BRANCH
|
30 | - node scripts/generate-routes
|
31 |
|
32 | - 'git commit -a -m "build: routes" --author="Octokit Bot <octokitbot@martynus.net>" && git push "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" ${TRAVIS_BRANCH} || true'
|
33 | allow_failures:
|
34 |
|
35 |
|
36 | stages:
|
37 | - test
|
38 | - name: release
|
39 | if: branch = master AND type IN (push)
|
40 | - name: greenkeeper-routes-update
|
41 | if: branch =~ ^greenkeeper/@octokit/routes
|