-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from avallete/setup-semantic-realease
feat(semantic-releases): Setup semantic-releases with travis
- Loading branch information
Showing
3 changed files
with
10,176 additions
and
4,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.