Skip to content

Commit

Permalink
ci(deploy): adds deploy automation do travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
robertLichtnow committed Jan 21, 2020
1 parent a9bab2d commit 525c34b
Showing 1 changed file with 35 additions and 18 deletions.
53 changes: 35 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,38 @@ language: node_js
os:
- linux

cache:
directories:
- node_modules

node_js:
- 12
- 10

install:
- npm install
- npm run snyk

before_script:
- npm run lint
- npm run build

script:
- npm test
jobs:
include:
- stage: Testing (node 12)
node_js: 12
if: type = pull_request
before_script:
- npm run lint
- npm run build
install:
- npm install
- npm run snyk
script:
- npm test
- stage: Testing (node 10)
node_js: 10
if: type = pull_request
before_script:
- npm run lint
- npm run build
install:
- npm install
- npm run snyk
script:
- npm test
- stage: release
node_js: 12
if: branch = master AND type = push
script: skip
install:
- npm install
- npm run build
deploy:
provider: script
cleanup: true
script: npx semantic-release

0 comments on commit 525c34b

Please sign in to comment.