Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
pipeline: upgrade travis with auto-release and security checks (#81)
Browse files Browse the repository at this point in the history
* pipeline: simplify travis cache and install scripts

This makes proper use of the newly added lockfile. It will detect if `npm ci` or `npm install` can be executed and will use the appropriate cache mechanism.

https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#npm-ci-support

* pipeline: use latest node and lts versions for testing

* pipeline: add semantic release dry runs in travis

This helps a lot ensuring the expected version is generated when actually creating releases.

* pipeline: add npm audit as mandatory test step

* pipeline: add automatic release script for main branch
  • Loading branch information
byCedric committed Nov 28, 2018
1 parent f97f7ab commit da79f78
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
---
language: node_js
node_js:
- node
- 11
- 10
- 8
os:
- linux
- osx
cache:
directories:
- node_modules
install:
- npm install
cache: npm
script:
- npx commitlint-travis
- npx stylelint './src/**/*.js'
- npx eslint ./src
- npx react-scripts test --coverage
- npm audit
after_success:
- npx codecov
deploy:
- provider: script
skip_cleanup: true
script: npx semantic-release --dry-run --branch develop
on:
node: 11
branch: develop
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: npx semantic-release
on:
node: 11
branch: master
condition: $TRAVIS_OS_NAME = linux

0 comments on commit da79f78

Please sign in to comment.