forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
134 lines (106 loc) · 3.49 KB
/
.travis.yml
File metadata and controls
134 lines (106 loc) · 3.49 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# After changing this file, check it on:
# http://lint.travis-ci.org/
#
# Known lint bugs:
# - add-ons: https://github.com/travis-ci/travis-yaml/issues/58
# - osx: https://github.com/travis-ci/travis-yaml/issues/95
language: node_js
# Is `sudo` required? If not, jobs are run on container-based infrastructure.
sudo: true
node_js:
# Node.js
- 'node'
- '9'
- '8'
- '7'
- '6'
- '5'
- '4'
# io.js
- '3'
- '2'
- '1'
# Node.js
- '0.12'
- '0.10'
os:
- linux
- osx
# Compiling native modules for io.js v3.x.x or Node.js >=v4.0.0 requires a C++11 standard-compliant compiler. Specifically, either gcc >=4.8 or clang >=3.5. Add-ons are Linux-specific. Electron requires a virtual display server (xvfb) on Linux.
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils
- gcc-5
- gcc-5-multilib
- g++-5
- g++-5-multilib
- gfortran-5
- gfortran-5-multilib
- xvfb
- unzip
env:
# Environment variables common to all jobs:
global:
- FC=gfortran
- FORTRAN_COMPILER=gfortran
- CC=gcc
- C_COMPILER=gcc
- CXX=g++
- CXX_COMPILER=g++
- LINKER=g++
- NODE_PATH="$TRAVIS_BUILD_DIR/lib/node_modules"
# Environment variables used to construct build matrix:
matrix:
- BUILD_TASK='test'
- BUILD_TASK='benchmark'
- BUILD_TASK='examples'
- BUILD_TASK='test-coverage'
matrix:
# Flag to immediately finish a build if any one of the jobs fails:
fast_finish: true
# Set the clone depth:
git:
depth: 100
before_install:
# Perform platform-specific initialization:
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
mkdir -p $HOME/bin;
ln -s /usr/bin/gcc-5 $HOME/bin/gcc;
ln -s /usr/bin/g++-5 $HOME/bin/g++;
ln -s /usr/bin/gfortran-5 $HOME/bin/gfortran;
export DISPLAY=':99.0';
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &;
else
brew cask uninstall oclint;
brew update;
brew install -v gcc;
fi
# Print debug info:
- echo "$($CC --version)"
- echo "$($CXX --version)"
- echo "$($FC --version)"
- git --version
- file $(which node)
- node --version
- node -p 'process.platform + "@" + process.arch'
- npm --version
- npm config get registry
# Run pre-install tasks:
- chmod +x ./tools/ci/travis/before_install
- "./tools/ci/travis/before_install"
install:
# Run install tasks via `travis_retry` to address occasional `npm install` failures (see https://docs.travis-ci.com/user/common-build-problems/#travis_retry):
- "travis_retry make FC=$FC FORTRAN_COMPILER=$FORTRAN_COMPILER install"
script:
- chmod +x ./tools/ci/travis/script
- "./tools/ci/travis/script $BUILD_TASK"
after_script:
- chmod +x ./tools/ci/travis/after_script
- "./tools/ci/travis/after_script"
notifications:
slack:
rooms:
secure: "RvY7XdxrvM3clWcnCIDYym+NerUVqpFS8Xekg7owYHgIm159zdpg5aIQAXvCuW4n82cK4bl932Cws6fzlXlnqS/0mjP1VTB1cQ32gL3TG2KpWAGJhtcl2gKEqM5KOZIKOW3171j0rsMQUODmke/N2316ACvgYoOUJbQXoOdaFIkWEMqgVxyq2sl9sC+4mPW3TmZEXNzn9Kt+OphunbfgEBrbkAL1QjiXYZnhhYT4SQ/QwaHtvI0MmYQ3B5GLXXMx+NkXrG3qcXx7XLxbw61rTKxY+vWqAh9w4MznlVptf8NiPCd0MX+2VyRPVow9wqZ68yWFAOHYt4zlW+uGlqr9cT31sQjuCH4WNjSPx+5YMrD4a7oBRAmxpIa7v7yRIhXR6Ia/0YO5S0kkV2MaSj+SiCcGSehWbV8NdlGzu5eD8JYzHQUykqCoKkfRC21F4ppvVL+rC8odkMLtLVOwA6+oDngqSuhXCRI8miac1YEmtu8Cj+JOVxgTudVQUkzcdgr7apUFRI3SblPQZnT0k/2eU0/U818z44tsDk5CcbCVXUCyre7vHNRrGGu8JaN7czxRKjEvbN//qGVixxm0tldQKgV1p3s0NVHPQJeuPX0hy3qHaQnzzPoJtNQvqjeOdPZsCArGjhQoWrP3QkIE0s8ZYFQnuQ1DqH3Pcqgvf45vjq0="