-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (65 loc) · 1.95 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
63
64
65
language: node_js
sudo: required
dist: trusty
matrix:
include:
- node_js: 4.7.2
- node_js: 6.9.4
- node_js: 6.9.4
env: SAUCE=true
before_install:
- npm install -g npm@'>=2.13.5'
script:
- |
echo "machine github.com login rover-jenkins password $GITHUB_TOKEN" >~/.netrc
git config --global user.name "Travis CI"
git config --global user.email "[email protected]"
if [ "${SAUCE}" = "true" ]; then
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
gulp test:sauce
else
echo "Pull request - skip Sauce Labs testing..."
fi
else
# Ugly but it's the only way to make istanbul generate coverage report
babel-node ./node_modules/gulp/bin/gulp.js test:node
fi
after_success:
- |
# Send report to coveralls but only once
if [ -z "${SAUCE}" ] && [ "${TRAVIS_NODE_VERSION}" = "4.7.2" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
gulp submit-coverage
fi
notifications:
slack:
secure: CgXxNEQrQ82EatyF/wSdF0P5rXcWPL+fFZ1lb1aBb8RbVt5gwddJ6xWVD/nYSr6tIJvIYHYhoYsIDPENwezIPsesG7kWXerQhydsEcA34JKxzsStd/TmU6Moxuwy6KTN7yzmL6586nSvoAw9TNPgvRkJFkH07asjGIc9Rlaq7/Y=
env:
global:
- secure: UfHc1SSKsUx8j2Z/S9WoJA+Qd9T9tWQZEGZVzmAmkGQ+V4iQsYwp2AwWJLH+e0JSKcVz9tiGicPfv8RlVS4YAQ2EeW2kC2W0ULrX4FYwNuuD/tjfHl47Vsoze4QlBuaZd897upt8r30GpUhqLonAkKr3700lZjr9Id3woWrSNfA=
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
before_deploy: gulp build
after_deploy: "./after_deploy.sh"
deploy:
- provider: npm
email: [email protected]
api_key:
secure: SZIsdOgh5eg+i1JSqLYTDv2EgYQTX54LIICX3BpSYjhqCBGeWxGXYhAGtVnBVVxslV1zZNe/H73hdKLMjd58DAda7hQXfrNKaRbijVH4B0ZHsFxyF20919G+GcqiWAeNGfe640SsqStipxXnJegHjVF5r6tmYZS3fmjkZ9Ndqn0=
skip_cleanup: true
on:
tags: true
repo: rover/rover-js-base
node: 4.7.2
- provider: script
script: "./bower_publish.sh"
skip_cleanup: true
on:
tags: true
repo: rover/rover-js-base
node: 4.7.2