Skip to content

Commit 1653bb3

Browse files
authored
fixes osx build.
Provides direct usage of jdk 8
1 parent ea102cf commit 1653bb3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939
jdk: openjdk8
4040
compiler: clang
4141
before_install:
42+
- curl -OLJ https://api.adoptopenjdk.net/v1/openjdk8/releases/x64_mac/latest/binary
43+
- tar -xzf OpenJDK8_x64_Mac_jdk*.tar.gz
44+
- sudo mkdir /Library/Java/JavaVirtualMachines/openjdk-8.jdk
45+
- sudo mkdir /Library/Java/JavaVirtualMachines/openjdk-8.jdk/Contents
46+
- sudo mv jdk8* /Library/Java/JavaVirtualMachines/openjdk-8.jdk/Contents/Home
47+
- sudo rm -rf /Library/Java/JavaVirtualMachines/openjdk-13*
48+
- ls /Library/Java/JavaVirtualMachines/openjdk-8.jdk
49+
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk-8.jdk/Contents/Home
50+
- java -version
4251
- curl -O -L https://github.com/google/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
4352
- tar -xzf protobuf-cpp-3.6.1.tar.gz
4453
- pushd protobuf-3.6.1

0 commit comments

Comments
 (0)