forked from seahorn/seahorn
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (48 loc) · 1.85 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
language: cpp
dist: trusty
os: linux
cache: apt
branches:
except:
- ifc
- lambdas
- deep-dev-5.0
matrix:
include:
- env: BUILD_TYPE=MinSizeRel
script:
- docker build --build-arg UBUNTU=xenial --build-arg BUILD_TYPE=$BUILD_TYPE --build-arg TRAVIS=true -t seahorn_xenial_build -f docker/seahorn-full-size-rel.Dockerfile .
- docker run -v $(pwd):/host -it seahorn_xenial_build /bin/sh -c "cp build/*.tar.gz /host/"
- |
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
docker build -t seahorn_container -f docker/seahorn.Dockerfile . ;
else
docker build --build-arg BASE_IMAGE=seahorn/seahorn-llvm5 -t seahorn_container -f docker/seahorn.Dockerfile . ;
fi
- |
if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
docker run -v $(pwd):/host -it seahorn_container /bin/sh -c "cd share/seahorn/; lit test" &&
docker login -u "$DOCKER_USER" -p "$DOCKER_PWD" &&
docker tag seahorn_container seahorn/seahorn-llvm5:nightly &&
docker push seahorn/seahorn-llvm5:nightly ;
else
docker run -v $(pwd):/host -it seahorn_container /bin/sh -c "cd share/seahorn; lit test" ;
fi
- env: BUILD_TYPE=Coverage
if: type = cron
script:
- docker build --build-arg UBUNTU=xenial --build-arg BUILD_TYPE=$BUILD_TYPE --build-arg TRAVIS=true -t seahorn_xenial_build -f docker/seahorn-full-size-rel.Dockerfile .
- >
docker run -v $(pwd):/host -it seahorn_xenial_build /bin/sh -c
"bash /seahorn/docker/run_and_collect_cov.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:
- seahorn-build@googlegroups.com
on_success: always
on_failure: always