forked from Kitware/itk-vtk-viewer
/
.travis.yml
57 lines (52 loc) · 1.11 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
language: node_js
os: linux
sudo: required
dist: trusty
group: travis_lts
addons:
sources:
- ubuntu-toolchain-r-test
apt:
packages:
- gcc-4.8
- g++-4.8
- xvfb
addons:
chrome: stable
node_js:
- '10'
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libgif-dev
- npm i -g npm@6.1.0
before_script:
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
- sleep 3
install:
- npm install
env:
- CXX=g++-4.8
notifications:
email:
recipients:
- sebastien.jourdain@kitware.com
- ken.martin@kitware.com
- matt.mccormick@kitware.com
on_success: change
on_failure: always
cache:
directories:
- node_modules
- doc/build-tmp
script:
- npm install
- npm run build:release
- git config --global user.name "Travis CI"
- git config --global user.email "sebastien.jourdain@kitware.com"
- export GIT_PUBLISH_URL=https://${GH_TOKEN}@github.com/Kitware/itk-vtk-viewer.git
- if [ "$TRAVIS_BRANCH" == "master" ]; then npm run doc:publish; fi
after_success:
- npm run semantic-release
branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"