Skip to content

Commit 5da862a

Browse files
committed
Update configuration
1 parent 63e6ebf commit 5da862a

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.travis.yml

+11-15
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
# Specify the programming language:
2929
language: node_js
3030

31+
# Specify the host operating system:
32+
os: linux
33+
34+
# Specify the Linux distribution:
35+
dist: xenial
36+
3137
# Specify the list of Node.js versions on which we want to build:
3238
node_js:
3339
# Node.js
@@ -53,10 +59,6 @@ node_js:
5359
# - '0.12'
5460
# - '0.10'
5561

56-
# Specify the host operating system:
57-
os:
58-
- linux
59-
6062
# Specify which branches should trigger builds:
6163
branches:
6264
only:
@@ -67,7 +69,7 @@ git:
6769
# Set the clone depth, making sure to account for queued builds:
6870
depth: 100
6971

70-
# 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.
72+
# 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. Electron requires a virtual display server (xvfb) on Linux.
7173
addons:
7274
apt:
7375
sources:
@@ -108,16 +110,10 @@ jobs:
108110
# Define steps to be performed before running installation steps:
109111
before_install:
110112
# Perform platform-specific initialization:
111-
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
112-
mkdir -p $HOME/bin;
113-
ln -s /usr/bin/gcc-9 $HOME/bin/gcc;
114-
ln -s /usr/bin/g++-9 $HOME/bin/g++;
115-
ln -s /usr/bin/gfortran-9 $HOME/bin/gfortran;
116-
else
117-
brew cask uninstall oclint;
118-
brew update;
119-
brew install -v gcc;
120-
fi
113+
- mkdir -p $HOME/bin;
114+
ln -s /usr/bin/gcc-9 $HOME/bin/gcc;
115+
ln -s /usr/bin/g++-9 $HOME/bin/g++;
116+
ln -s /usr/bin/gfortran-9 $HOME/bin/gfortran;
121117

122118
# Configure the virtual display server (needed for electron):
123119
- export DISPLAY=':99.0'

0 commit comments

Comments
 (0)