Skip to content

Commit 63e6ebf

Browse files
committed
Update Travis CI configuration file
1 parent c2ca7c4 commit 63e6ebf

File tree

1 file changed

+44
-42
lines changed

1 file changed

+44
-42
lines changed

.travis.yml

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,54 @@
1818

1919
# After changing this file, check it on:
2020
#
21-
# http://lint.travis-ci.org/
21+
# https://config.travis-ci.com/explore
2222
#
2323
# Known lint bugs:
2424
#
2525
# - add-ons: https://github.com/travis-ci/travis-yaml/issues/58
2626
# - osx: https://github.com/travis-ci/travis-yaml/issues/95
2727

28+
# Specify the programming language:
2829
language: node_js
2930

30-
# Is `sudo` required? If not, jobs are run on container-based infrastructure.
31-
sudo: true
32-
31+
# Specify the list of Node.js versions on which we want to build:
3332
node_js:
3433
# Node.js
3534
- 'node'
36-
- '13'
37-
- '12'
38-
- '11'
39-
- '10'
40-
- '9'
41-
- '8'
42-
- '7'
43-
- '6'
44-
- '5'
45-
- '4'
46-
# io.js
47-
- '3'
48-
- '2'
49-
- '1'
50-
# Node.js
51-
- '0.12'
52-
- '0.10'
53-
54-
35+
# - '16'
36+
# - '15'
37+
# - '14'
38+
# - '13'
39+
# - '12'
40+
# - '11'
41+
# - '10'
42+
# - '9'
43+
# - '8'
44+
# - '7'
45+
# - '6'
46+
# - '5'
47+
# - '4'
48+
# # io.js
49+
# - '3'
50+
# - '2'
51+
# - '1'
52+
# # Node.js
53+
# - '0.12'
54+
# - '0.10'
55+
56+
# Specify the host operating system:
5557
os:
5658
- linux
57-
# - osx
59+
60+
# Specify which branches should trigger builds:
61+
branches:
62+
only:
63+
- develop
64+
65+
# Configure Git:
66+
git:
67+
# Set the clone depth, making sure to account for queued builds:
68+
depth: 100
5869

5970
# 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.
6071
addons:
@@ -72,7 +83,7 @@ addons:
7283
- xvfb
7384
- unzip
7485

75-
86+
# Specify environment variables:
7687
env:
7788
# Environment variables common to all jobs:
7889
global:
@@ -86,24 +97,15 @@ env:
8697
- NODE_PATH="$TRAVIS_BUILD_DIR/lib/node_modules"
8798

8899
# Environment variables used to construct the build matrix:
89-
matrix:
100+
jobs:
90101
- BUILD_TASK='test-npm-install'
91-
- BUILD_TASK='test'
92-
- BUILD_TASK='benchmark'
93-
- BUILD_TASK='examples'
94-
- BUILD_TASK='test-coverage'
95-
96102

97-
matrix:
103+
# Configure the build matrix:
104+
jobs:
98105
# Flag to immediately finish a build if any one of the jobs fails:
99106
fast_finish: true
100107

101-
102-
# Set the clone depth:
103-
git:
104-
depth: 100
105-
106-
108+
# Define steps to be performed before running installation steps:
107109
before_install:
108110
# Perform platform-specific initialization:
109111
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
@@ -139,22 +141,22 @@ before_install:
139141
- chmod +x ./tools/ci/travis/before_install
140142
- "./tools/ci/travis/before_install"
141143

142-
144+
# Define installation steps:
143145
install:
144146
# Run install tasks via `travis_retry` to address occasional `npm install` failures (see https://docs.travis-ci.com/user/common-build-problems/#travis_retry):
145147
- "travis_retry make FC=$FC FORTRAN_COMPILER=$FORTRAN_COMPILER install"
146148

147-
149+
# Define the build steps:
148150
script:
149151
- chmod +x ./tools/ci/travis/script
150152
- "./tools/ci/travis/script $BUILD_TASK"
151153

152-
154+
# Define the steps to run after completing the build steps:
153155
after_script:
154156
- chmod +x ./tools/ci/travis/after_script
155157
- "./tools/ci/travis/after_script"
156158

157-
159+
# Define notifications:
158160
notifications:
159161
slack:
160162
rooms:

0 commit comments

Comments
 (0)