-
Notifications
You must be signed in to change notification settings - Fork 172
/
.travis.yml
22 lines (22 loc) · 878 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
dist: trusty
sudo: false
language: cpp
env:
- JOB=cuckoo
- JOB=cuckatoo
- JOB=java
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
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 && env ${LIBV:?}="${LIBP:?}" make libblake2b.so && cd cuckoo && make all; ); fi
- if test cuckatoo = "${JOB:?}"; then ( cd src && env ${LIBV:?}="${LIBP:?}" make libblake2b.so && cd cuckatoo && make all; ); fi
- if test java = "${JOB:?}"; then ( cd src/java && make all; ); fi