Skip to content

build jbmc on AWS codebuild #2405

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
Jun 23, 2018
Merged
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
17 changes: 12 additions & 5 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@ version: 0.2
phases:
install:
commands:
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" > /etc/apt/sources.list.d/toolchain.list
- add-apt-repository ppa:ubuntu-toolchain-r/test -y
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is add-apt-repository natively available, without any further installation steps?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes; furthermore, this is already the case on the underlying Ubuntu trusty; it's not a tweak in the docker image.

- 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
- apt-get install -y openjdk-7-jdk
- 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
build:
commands:
- echo Build started on `date`
- make -C src minisat2-download
- make -C jbmc/src java-models-library-download
- (cd src ; make minisat2-download)
- (cd src ; make CXX="ccache g++" -j2)
- (cd regression ; make test)
- make -C src CXX="ccache g++" -j2
- make -C unit CXX="ccache g++" -j2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK this is building the unit tests but not running them?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the record: It seems "running the test" has been added as post_build steps.

- make -C jbmc/src CXX="ccache g++" -j2
- make -C jbmc/unit CXX="ccache g++" -j2
post_build:
commands:
- make -C unit test
- make -C regression test
- make -C jbmc/unit test
- make -C jbmc/regression test
- echo Build completed on `date`
artifacts:
files:
Expand Down