Skip to content

Commit

Permalink
ci: use shared Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Dec 5, 2019
1 parent c9fc3c1 commit 45ddc5b
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
language: node_js
version: ~> 1.0

services:
- docker

node_js:
- 12
- 10
- 8.16 # minimal supported node version

# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- /^greenkeeper.*$/

# Retry install on fail to avoid failing a build on network/disk/external errors
install:
- travis_retry npm install

script:
- npm run test

after_success:
- npm run codecov

jobs:
include:
- stage: release
node_js: lts/*
script:
- npm run semantic-release
import:
- semantic-release/semantic-release:.travis/node.yml
- semantic-release/semantic-release:.travis/node-versions.yml
- semantic-release/semantic-release:.travis/semantic-release.yml
- semantic-release/semantic-release:.travis/greenkeeper.yml
- semantic-release/semantic-release:.travis/codecov.yml

0 comments on commit 45ddc5b

Please sign in to comment.