Skip to content

Commit

Permalink
Merge pull request #75 from avallete/setup-semantic-realease
Browse files Browse the repository at this point in the history
feat(semantic-releases): Setup semantic-releases with travis
  • Loading branch information
avallete authored Jun 29, 2020
2 parents 4a38628 + f8b3997 commit 55f4749
Show file tree
Hide file tree
Showing 3 changed files with 10,176 additions and 4,010 deletions.
35 changes: 20 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
language: node_js
node_js:
- '8.10.0'
- 10
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
install:
# First install dependencies of the project itself
- npm install -D
- cd tests
- npm install -D
script:
- npm run test -- --record
stages:
- test
- name: release
if: branch = master
jobs:
include:
- stage: test
name: "Run cypress tests"
script:
- npm install -D
- npm run build
- cd tests
- ../node_modules/.bin/npm install -D
- ../node_modules/.bin/npm run test
- stage: release
script:
- npm install -D
- npm run build
- npx semantic-release
Loading

0 comments on commit 55f4749

Please sign in to comment.