Skip to content

Commit 9fdfea5

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 9fdfea5

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

buildspec-linux-clang.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@ 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
7-
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
8-
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
9-
- add-apt-repository ppa:openjdk-r/ppa -y
109
- apt-get update -y
11-
- 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
13-
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
14-
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
10+
- apt-get install -y clang-7 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
1511
build:
1612
commands:
1713
- echo Build started on `date`

buildspec-linux-cmake-gcc.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@ 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
7-
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
8-
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
9-
- add-apt-repository ppa:openjdk-r/ppa -y
109
- apt-get update -y
11-
- 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
13-
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
14-
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
10+
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
1511
build:
1612
commands:
1713
- echo Build started on `date`
18-
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
14+
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++'
1915
- git submodule update --init --recursive
2016
- cmake --build build -- -j2
2117
post_build:

buildspec.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@ 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
7-
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
8-
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
9-
- add-apt-repository ppa:openjdk-r/ppa -y
109
- apt-get update -y
11-
- 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
13-
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
14-
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
10+
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb
1511
build:
1612
commands:
1713
- echo Build started on `date`

0 commit comments

Comments
 (0)