Skip to content

Commit

Permalink
Deploy montage automatically using build stages
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebost committed Feb 7, 2019
1 parent ad7e919 commit 99c8093
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
language: node_js
node_js:
- "4"
# - "8"
script: npm run $COMMAND
env:
- COMMAND=lint
- COMMAND=test
- COMMAND=test:karma-travis
#- COMMAND=integration MONTAGE_VERSION=. MOP_VERSION=0.13
#- COMMAND=integration MONTAGE_VERSION=. MOP_VERSION=latest
- COMMAND=integration MONTAGE_VERSION=. MOP_VERSION="#master"
before_install:
- "npm set legacy-bundling=true"
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
jobs:
include:
- stage: lint
env:
script: npm run lint
- stage: deploy
script: skip
env:
deploy:
provider: npm
email: "${NPM_EMAIL}"
api_key: "${NPM_API_KEY}"
on:
tags: true
stages:
- lint
- test
- deploy
notifications:
irc:
channels:
Expand Down

0 comments on commit 99c8093

Please sign in to comment.