forked from AugurProject/augur-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (61 loc) · 3.5 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
dist: trusty
sudo: required
language: node_js
cache:
yarn: true
directories:
- node_modules
services:
- docker
branches:
only:
- master
- stable
- mvp
- petong/travis-ci
- "/^v\\d+\\.\\d+\\.\\d+(-\\d+)?$/"
node_js:
- '9'
- '8'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- build-essential
- libusb-1.0-0-dev
script:
- yarn lint && yarn test;
- NODE_ENV='test' node ./node_modules/nyc/bin/nyc.js ./node_modules/mocha/bin/_mocha --timeout 10000 --require babel-register && node ./node_modules/nyc/bin/nyc.js report --require babel-register --reporter=lcov && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
# This is here to confirm the build works.
# Nothing is done with the resulting artifacts.
- yarn build --dev
jobs:
include:
- stage: Deploy to stable
if: branch = stable
node_js: '8'
script: skip
deploy:
provider: script
script: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; npm run docker:release -- stable
skip_cleanup: true
on:
all_branches: true
- stage: Deploy to dev
if: branch = master
script: skip
deploy:
provider: script
script: docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"; npm run docker:release -- dev
skip_cleanup: true
on:
all_branches: true
env:
global:
- DOCKER_USERNAME=augurintegration
- secure: "XDre72+I7IA/5UxNuM4nR6ZO2RNEO0gyoMZq8uVnzQYqlvEHz69ucZG3rQVGOLOJnq/NZvehDrZ4sgYazVPABGlbFYIhLyLMNEy32N5MuuOOnd/kuPCj3L2BMPWB93jUssXbv6RsFjmxmuBPzVAD9QDhHM0DKTHed/txAu0g5Jo/wZmYf0J7UM5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