forked from pump-io/pump.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 1.24 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
language: node_js
node_js:
- "6"
# Note: docker-candidacy.sh chooses 8 as the version to run Docker builds.
# That's pretty arbitrary, but I had to pick something. When you remove this
# from the build matrix, be sure to adjust that script too.
- "8"
- "9"
dist: trusty
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
services:
- docker
script:
- if ./util/docker-candidacy.sh; then export DOCKER_CANDIDATE=true; else export DOCKER_CANDIDATE=false; fi
- echo 'DOCKER_CANDIDATE='$DOCKER_CANDIDATE
- if $DOCKER_CANDIDATE; then ./util/build-docker.sh; fi
- if [ $TRAVIS_EVENT_TYPE = cron ]; then travis_terminate 0; fi
- "(npm test || npm test) && npm run test:install && sudo sh -c 'export PATH=\"'\"$(dirname $(which node)):$PATH\"'\" && npm run test:root'"
before_script:
- "./test/hosts.sh"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq graphicsmagick
- npm install -g npm@6
- npm --version
after_script:
# The coverage data from as-root tests is root:root but not world-readable
- sudo chown -R $(whoami) coverage
- npm run test:report-coverage
notifications:
email: false
webhooks:
- https://pumabot.strugee.net/hubot/travis-ci-events