forked from tromp/cuckoo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (36 loc) · 1.12 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
dist: trusty
sudo: false
language: cpp
env:
- JOB=cuckoo
- JOB=cuckatoo
- JOB=java
- JOB=doc
matrix:
include:
- os: osx
osx_image: xcode8.3 # [`xcode8.3` is Xcode 8.3.3 on OS X 10.12](https://docs.travis-ci.com/user/reference/osx#OS-X-Version)
language: generic
env: JOB=java
addons:
apt:
packages:
- texlive-latex-base
- texlive-pictures
- pgf
before_script:
- case "${TRAVIS_OS_NAME:?}" in linux) LIBV=LD_LIBRARY_PATH;; osx) LIBV=DYLD_LIBRARY_PATH;; esac
- echo "The library path variable name is ${LIBV:?}"
- LIBP="$(pwd)/src"
- echo "The library path variable value is ${LIBP:?}"
script:
- if test cuckoo = "${JOB:?}"; then ( cd src/cuckoo && make; ); fi
- if test cuckatoo = "${JOB:?}"; then ( cd src/cuckatoo && make; ); fi
- if test java = "${JOB:?}"; then ( cd src/java && make; ); fi
- if test doc = "${JOB:?}"; then ( cd doc && make cuckoo.pdf; ); fi
after_success:
- |
if test doc = "${JOB:?}"; then
echo "Below is the generated PDF encoded as base64. You can decode it using 'openssl base64 -d'."
cat doc/cuckoo.pdf | openssl base64
fi