Skip to content

Commit bc86a60

Browse files
authored
Merge pull request #4027 from diffblue/travis-to-codebuild
move two builds from Travis to codebuild
2 parents b00794c + e949b30 commit bc86a60

File tree

3 files changed

+63
-57
lines changed

3 files changed

+63
-57
lines changed

.travis.yml

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -144,36 +144,6 @@ jobs:
144144
- EXTRA_CXXFLAGS="-DDEBUG"
145145
script: echo "Not running any tests for a debug build."
146146

147-
# Ubuntu Linux with glibc using clang++-7, no-debug mode
148-
- stage: Test different OS/CXX/Flags
149-
os: linux
150-
sudo: false
151-
compiler: clang
152-
cache: ccache
153-
addons:
154-
apt:
155-
sources:
156-
- ubuntu-toolchain-r-test
157-
- llvm-toolchain-trusty-7
158-
packages:
159-
- libwww-perl
160-
- g++-5
161-
- clang-7
162-
- libstdc++-5-dev
163-
- libubsan0
164-
- parallel
165-
- jq
166-
before_install:
167-
- mkdir bin
168-
- ln -s /usr/bin/gcc-5 bin/gcc
169-
- ln -s /usr/bin/c++-5 bin/g++
170-
- export CCACHE_CPP2=yes
171-
# env: COMPILER=clang++-7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
172-
env:
173-
- COMPILER="ccache /usr/bin/clang++-7"
174-
- EXTRA_CXXFLAGS="-Qunused-arguments -fcolor-diagnostics -DNDEBUG"
175-
- CCACHE_CPP2=yes
176-
177147
# Ubuntu Linux with glibc using clang++-7, debug mode, disable USE_DSTRING
178148
- stage: Test different OS/CXX/Flags
179149
os: linux
@@ -204,33 +174,6 @@ jobs:
204174
- CCACHE_CPP2=yes
205175
script: echo "Not running any tests for a debug build."
206176

207-
# cmake build using g++-5
208-
- stage: Test different OS/CXX/Flags
209-
os: linux
210-
sudo: false
211-
compiler: gcc
212-
cache: ccache
213-
env:
214-
- BUILD_SYSTEM=cmake
215-
addons:
216-
apt:
217-
sources:
218-
- ubuntu-toolchain-r-test
219-
packages:
220-
- g++-5
221-
- jq
222-
before_install:
223-
- mkdir bin
224-
- ln -s /usr/bin/gcc-5 bin/gcc
225-
- ln -s /usr/bin/g++-5 bin/g++
226-
install:
227-
- ccache -z
228-
- ccache --max-size=1G
229-
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
230-
- git submodule update --init --recursive
231-
- cmake --build build -- -j4
232-
script: (cd build; ctest -V -L CORE -j2)
233-
234177
# cmake build using g++-7, enable CMAKE_USE_CUDD
235178
- stage: Test different OS/CXX/Flags
236179
os: linux

buildspec-linux-clang.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 0.2
2+
3+
phases:
4+
install:
5+
commands:
6+
- 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
10+
- 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
15+
build:
16+
commands:
17+
- echo Build started on `date`
18+
- git submodule update --init --recursive
19+
- make -C src CXX='ccache /usr/bin/clang++-7' CXX_FLAGS='-Qunused-arguments'
20+
- make -C jbmc/src CXX='ccache /usr/bin/clang++-7' CXX_FLAGS='-Qunused-arguments'
21+
post_build:
22+
commands:
23+
- make -C unit test CXX='ccache /usr/bin/clang++-7' CXX_FLAGS='-Qunused-arguments'
24+
- make -C regression test
25+
- scripts/delete_failing_smt2_solver_tests
26+
- env PATH=$PATH:`pwd`/src/solvers make -C regression/cbmc test-cprover-smt2
27+
- make -C jbmc/unit test CXX='ccache /usr/bin/clang++-7' CXX_FLAGS='-Qunused-arguments'
28+
- make -C jbmc/regression test
29+
- echo Build completed on `date`
30+
cache:
31+
paths:
32+
- '/var/cache/apt/**/*'
33+
- '/var/lib/apt/lists/**/*'
34+
- '/root/.ccache/**/*'

buildspec-linux-cmake-gcc.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 0.2
2+
3+
phases:
4+
install:
5+
commands:
6+
- 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
10+
- 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
15+
build:
16+
commands:
17+
- echo Build started on `date`
18+
- cmake -H. -Bbuild '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/g++-5'
19+
- git submodule update --init --recursive
20+
- cmake --build build -- -j2
21+
post_build:
22+
commands:
23+
- cd build; ctest -V -L CORE -j2
24+
- echo Build completed on `date`
25+
cache:
26+
paths:
27+
- '/var/cache/apt/**/*'
28+
- '/var/lib/apt/lists/**/*'
29+
- '/root/.ccache/**/*'

0 commit comments

Comments
 (0)