Skip to content

update buildspec to include JDK version #4625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions buildspec-linux-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ version: 0.2

phases:
install:
runtime-versions:
java: openjdk8
commands:
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
- add-apt-repository ppa:openjdk-r/ppa -y
- apt-get update -y
- apt-get install -y g++-5 clang-7 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
- apt-get install -y openjdk-8-jdk
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
- apt-get install -y clang-7 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
build:
commands:
- echo Build started on `date`
Expand Down
12 changes: 4 additions & 8 deletions buildspec-linux-cmake-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@ version: 0.2

phases:
install:
runtime-versions:
java: openjdk8
commands:
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
- add-apt-repository ppa:openjdk-r/ppa -y
- apt-get update -y
- apt-get install -y g++-5 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
- apt-get install -y openjdk-8-jdk
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
build:
commands:
- echo Build started on `date`
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++'
- git submodule update --init --recursive
- cmake --build build -- -j2
post_build:
Expand Down
10 changes: 3 additions & 7 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ version: 0.2

phases:
install:
runtime-versions:
java: openjdk8
commands:
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA9EF27F
- add-apt-repository ppa:openjdk-r/ppa -y
- apt-get update -y
- apt-get install -y g++-5 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb
- apt-get install -y openjdk-8-jdk
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
- apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb
build:
commands:
- echo Build started on `date`
Expand Down