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 d36ee06 commit 79614fc
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions .travis.yml
@@ -1,30 +1,8 @@
language: node_js

node_js:
- 12
- 10
- 8.16

# 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
version: ~> 1.0

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 79614fc

Please sign in to comment.