@@ -12,8 +12,7 @@ phases:
12
12
commands :
13
13
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
14
14
- apt-get update -y
15
- - apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb lcov curl python-pip
16
- - pip install codecov
15
+ - apt-get install -y flex bison make git libwww-perl patch ccache libc6-dev-i386 jq gdb lcov curl
17
16
build :
18
17
commands :
19
18
- echo Build started on `date`
@@ -26,19 +25,22 @@ phases:
26
25
post_build :
27
26
commands :
28
27
- make -C unit test
28
+ # Also enable compilation with coverage/profiling flags when running the
29
+ # regression tests, to also get results for the driver program in
30
+ # regression/invariants
29
31
- make -C regression test CPROVER_WITH_PROFILING=1
30
32
- make -C regression/cbmc test-paths-lifo
31
33
- env PATH=$PATH:`pwd`/src/solvers make -C regression/cbmc test-cprover-smt2
32
34
- make -C jbmc/unit test
33
35
- make -C jbmc/regression test
34
- - lcov --capture --directory . --output-file ./ lcov.info
36
+ - lcov --capture --directory . --output-file lcov.info
35
37
# If $CODEBUILD_SOURCE_VERSION starts with 'pr/', filter out pr number, if not, return empty
36
38
- VCS_PULL_REQUEST=$(echo $CODEBUILD_SOURCE_VERSION | sed '/^pr\//!d;s/^pr\///')
37
39
# If $CODEBUILD_SOURCE_VERSION is commit id, set $VCS_COMMIT_ID
38
40
- VCS_COMMIT_ID=$(echo $CODEBUILD_SOURCE_VERSION | sed -r '/^[a-z0-9]{40}$/!d')
39
41
- COV_SCRIPT=/root/.cache/codecov.sh
40
42
- if [ ! -f "$COV_SCRIPT" ]; then curl -s https://codecov.io/bash > "$COV_SCRIPT"; fi
41
- - echo "$CODEBUILD_INITIATOR" | grep GitHub && bash " $COV_SCRIPT" -t "$CODECOV_TOKEN" || true
43
+ - bash $COV_SCRIPT -t "$CODECOV_TOKEN" || true
42
44
- echo Build completed on `date`
43
45
cache :
44
46
paths :
0 commit comments