Skip to content

Commit 3ca3b3f

Browse files
author
Daniel Kroening
committed
update buildspec to include jdk version
This is required by the newer Ubuntu 18 images. In return, the JDK no longer needs to be installed using apt-get.
1 parent 9dbac2e commit 3ca3b3f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

buildspec-linux-clang.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ version: 0.2
22

33
phases:
44
install:
5+
runtime-versions:
6+
java: openjdk8
57
commands:
68
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
79
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
810
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
911
- add-apt-repository ppa:openjdk-r/ppa -y
1012
- apt-get update -y
1113
- apt-get install -y g++-5 clang-7 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
12-
- apt-get install -y openjdk-8-jdk
1314
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
15+
- update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-5 1
1416
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
1517
build:
1618
commands:

buildspec-linux-cmake-gcc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ version: 0.2
22

33
phases:
44
install:
5+
runtime-versions:
6+
java: openjdk8
57
commands:
68
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
79
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
810
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
911
- add-apt-repository ppa:openjdk-r/ppa -y
1012
- apt-get update -y
1113
- apt-get install -y g++-5 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
12-
- apt-get install -y openjdk-8-jdk
1314
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
15+
- update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-5 1
1416
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
1517
build:
1618
commands:

buildspec.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ version: 0.2
22

33
phases:
44
install:
5+
runtime-versions:
6+
java: openjdk8
57
commands:
68
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
79
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
810
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
911
- add-apt-repository ppa:openjdk-r/ppa -y
1012
- apt-get update -y
1113
- apt-get install -y g++-5 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb
12-
- apt-get install -y openjdk-8-jdk
1314
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
15+
- update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-5 1
1416
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
1517
build:
1618
commands:

0 commit comments

Comments
 (0)