2015-02-19 13:54:30 +00:00
|
|
|
language: node_js
|
2017-10-27 10:00:04 +00:00
|
|
|
node_js:
|
|
|
|
- 'node'
|
2015-02-19 13:54:30 +00:00
|
|
|
|
2017-10-27 10:00:04 +00:00
|
|
|
before_install:
|
|
|
|
- npm install -g wiredeps@0.2
|
|
|
|
- wiredeps --default-branch=master --branch=$TRAVIS_BRANCH --tag=$TRAVIS_TAG --verbose
|
2017-05-18 07:47:18 +00:00
|
|
|
|
2017-10-27 10:00:04 +00:00
|
|
|
sudo: false
|
2016-11-18 13:52:26 +00:00
|
|
|
|
2017-10-27 10:00:04 +00:00
|
|
|
script: npm test
|
2016-11-18 13:52:26 +00:00
|
|
|
|
2017-10-27 10:00:04 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: test
|
|
|
|
addons:
|
|
|
|
firefox: "latest-esr"
|
|
|
|
before_script:
|
|
|
|
- "export DISPLAY=:99.0"
|
|
|
|
- "sh -e /etc/init.d/xvfb start"
|
|
|
|
- sleep 3
|
|
|
|
script:
|
|
|
|
- TEST_BROWSERS=Firefox,PhantomJS npm run all
|
|
|
|
- stage: publish pre-built
|
|
|
|
script: './tasks/stages/publish-prebuilt'
|
|
|
|
- stage: update integration test
|
|
|
|
script: './tasks/stages/update-integration-test'
|
|
|
|
- stage: update seed
|
|
|
|
script: './tasks/stages/update-seed'
|
2015-02-19 13:54:30 +00:00
|
|
|
|
2017-10-27 10:00:04 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- name: publish pre-built
|
|
|
|
if: tag =~ ^v\d
|
|
|
|
- name: update integration test
|
|
|
|
if: tag =~ ^v\d
|
|
|
|
- name: update seed
|
|
|
|
if: tag =~ ^v\d
|