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 | env: Node 10 & coverage upload
|
17 | after_script:
|
18 | - npm run coverage:upload
|
19 | - node_js: lts/*
|
20 | env: memory-test
|
21 | script: npm run test:memory
|
22 | - stage: release
|
23 | env: semantic-release
|
24 | node_js: lts/*
|
25 | script: npx semantic-release
|
26 |
|
27 |
|
28 |
|
29 | - stage: greenkeeper-routes-update
|
30 | node_js: lts/*
|
31 | script:
|
32 | - git checkout $TRAVIS_BRANCH
|
33 | - node scripts/generate-routes
|
34 |
|
35 | - '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'
|
36 |
|
37 | stages:
|
38 | - test
|
39 | - name: release
|
40 | if: branch = master AND type IN (push)
|
41 | - name: greenkeeper-routes-update
|
42 | if: branch =~ ^greenkeeper/@octokit/routes
|