-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy path.travis.yml
22 lines (22 loc) · 843 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=quick
- JOB=demo29x1
- 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=quick
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 quick = "${JOB:?}"; then ( cd src && env ${LIBV:?}="${LIBP:?}" make libblake2b.so test example; ); fi
- if test demo29x1 = "${JOB:?}"; then ( cd src && env ${LIBV:?}="${LIBP:?}" make libblake2b.so demo29x1; ); fi
- if test java = "${JOB:?}"; then ( cd src && make java; ); fi