forked from seahorn/seahorn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (60 loc) · 3.18 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: cpp
dist: trusty
os: linux
cache: apt
branches:
except:
- ifc
- lambdas
- deep-dev-5.0
- dev8
- dev9
matrix:
include:
- env: BUILD_TYPE=RelWithDebInfo
script:
- docker build -t seahorn/seahorn-builder:bionic-llvm10 -f docker/seahorn-builder.Dockerfile .
- docker run -v $(pwd):/host -it seahorn/seahorn-builder:bionic-llvm10 /bin/sh -c "cp build/SeaHorn*.tar.gz /host/"
- |
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
docker build -t seahorn_container -f docker/seahorn.Dockerfile . ;
else
docker build -t seahorn_container -f docker/seahorn.Dockerfile . ;
fi
- |
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
travis_wait 120 sleep infinity &
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 test/opsem " &&
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 -D opsem-opts=--horn-bv2-widemem test/opsem " &&
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 -D opsem-opts=--horn-bv2-extra-widemem test/opsem " &&
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 test/mcfuzz" &&
docker login -u "$DOCKER_USER" -p "$DOCKER_PWD" &&
docker tag seahorn_container seahorn/seahorn-llvm10:nightly &&
docker push seahorn/seahorn-llvm10:nightly ;
else
## generate something for travis to see
travis_wait 120 sleep infinity &
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 test/opsem " &&
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 -D opsem-opts=--horn-bv2-widemem test/opsem " &&
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 -D opsem-opts=--horn-bv2-extra-widemem test/opsem " &&
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 test/mcfuzz" &&
docker run -v $(pwd):/host -it seahorn_container /bin/bash -c "cd seahorn/share/seahorn && lit -a --time-tests --max-time=1200 test/smc"
fi
- env: BUILD_TYPE=Coverage
if: type = cron
script:
- docker build --build-arg BUILD_TYPE=$BUILD_TYPE -t seahorn/seahorn-builder:bionic-llvm10 -f docker/seahorn-builder.Dockerfile .
- >
docker run -v $(pwd):/host -it seahorn/seahorn-builder:bionic-llvm10
/bin/bash -c "/seahorn/scripts/coverage/docker-run-lcov.sh && mv /seahorn/all.info /host"
&& bash <(curl -s https://codecov.io/bash) -Z -f all.info
services:
- docker
install: true
notifications:
slack: seahornteam:NAUqZmZHFFviPH4ktQbJXgKu
email:
recipients:
on_success: always
on_failure: always