Skip to content

Commit 1f6c36d

Browse files
committed
Compact the YAML in .travis.yml w/ refs and merges
YAML has anchors, refernces and merges which can be used to avoid repetition.
1 parent 618e486 commit 1f6c36d

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

.travis.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,48 +27,36 @@ matrix:
2727
env:
2828
- BUILD_TYPE="InstallScript"
2929
OSX_PACKAGES="gcc"
30-
- os: linux
30+
- &ubuntu
31+
os: linux
3132
sudo: false
3233
env:
3334
- BUILD_TYPE="CodeCoverage"
3435
cache:
36+
apt: false
3537
directories:
3638
- "$CACHE"
3739
addons:
3840
apt:
3941
sources:
40-
- george-edison55-precise-backports
4142
- ubuntu-toolchain-r-test
43+
- george-edison55-precise-backports
4244
packages:
4345
- gcc-6
4446
- gfortran-6
4547
- g++-6
4648
- binutils
4749
- cmake-data
4850
- cmake
49-
- os: linux
50-
sudo: false
51+
-
52+
<<: *ubuntu
5153
env:
5254
- BUILD_TYPE="Release"
53-
cache:
54-
directories:
55-
- "$CACHE"
56-
addons:
57-
apt:
58-
sources:
59-
- george-edison55-precise-backports
60-
- ubuntu-toolchain-r-test
61-
packages:
62-
- gcc-6
63-
- gfortran-6
64-
- g++-6
65-
- binutils
66-
- cmake-data
67-
- cmake
68-
- os: linux
69-
sudo: false
55+
-
56+
<<: *ubuntu
7057
env:
7158
- BUILD_TYPE="InstallScript"
59+
cache: false
7260
addons:
7361
apt:
7462
sources:

0 commit comments

Comments
 (0)