Skip to content

Commit 7dd55cc

Browse files
committed
[Java] Update travis build.
1 parent e284833 commit 7dd55cc

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.travis.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11

22
sudo: false
33

4+
before_cache:
5+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
6+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
7+
8+
cache:
9+
directories:
10+
- $HOME/.gradle/caches/
11+
- $HOME/.gradle/wrapper/
12+
413
matrix:
514
include:
615

716
# clang-4
17+
- language: cpp
818
- env: COMPILER=clang++-4.0
919
compiler: clang
1020
os: linux
@@ -19,6 +29,7 @@ matrix:
1929
- llvm-toolchain-trusty-4.0
2030

2131
# clang-5
32+
- language: cpp
2233
- env: COMPILER=clang++-5.0
2334
compiler: clang
2435
os: linux
@@ -33,6 +44,7 @@ matrix:
3344
- llvm-toolchain-trusty-5.0
3445

3546
# clang-6
47+
- language: cpp
3648
- env: COMPILER=clang++-6.0
3749
compiler: clang
3850
os: linux
@@ -47,6 +59,7 @@ matrix:
4759
- llvm-toolchain-trusty-6.0
4860

4961
# gcc-5
62+
- language: cpp
5063
- env: COMPILER=g++-5
5164
compiler: gcc
5265
os: linux
@@ -59,6 +72,7 @@ matrix:
5972
- ubuntu-toolchain-r-test
6073

6174
# gcc-6
75+
- language: cpp
6276
- env: COMPILER=g++-6
6377
compiler: gcc
6478
os: linux
@@ -71,6 +85,7 @@ matrix:
7185
- ubuntu-toolchain-r-test
7286

7387
# gcc-7
88+
- language: cpp
7489
- env: COMPILER=g++-7
7590
compiler: gcc
7691
os: linux
@@ -83,6 +98,7 @@ matrix:
8398
- ubuntu-toolchain-r-test
8499

85100
# gcc-8
101+
- language: cpp
86102
- env: COMPILER=g++-8
87103
compiler: gcc
88104
os: linux
@@ -98,14 +114,5 @@ before_script:
98114
- export CXX=$COMPILER
99115
- ./gradlew
100116

101-
before_cache:
102-
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
103-
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
104-
105-
cache:
106-
directories:
107-
- $HOME/.gradle/caches/
108-
- $HOME/.gradle/wrapper/
109-
110117
script:
111118
- ./cppbuild/cppbuild

0 commit comments

Comments
 (0)