-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
29 lines (29 loc) · 1 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
language: cpp
dist: xenial
compiler: clang
env:
LSLDIST_URL="https://github.com/sccn/liblsl/releases/download"
UBUNTU_DIST="xenial"
LSL_VERSION="1.13.0"
- CMakeArgs=""
matrix:
include:
- os: osx
#: use the default image, if an other image version is needed check
#: https://docs.travis-ci.com/user/reference/osx/
# osx_image: xcode10.1
before_script:
- travis_retry wget ${LSLDIST_URL}/${LSL_VERSION}/liblsl-1.13.0-OSX64.tar.bz2
- mkdir LSL; tar -xf *.tar.bz2 -C LSL
- export LSL_INSTALL_ROOT=LSL
- brew install qt
- export CMAKE_PREFIX_PATH=/usr/local/opt/qt/
script:
- mkdir -p build/install
- cd build
- cmake --version
- cmake -DLSL_INSTALL_ROOT=${LSL_INSTALL_ROOT} $CMakeArgs ../
- cmake --build . --config Release --target install
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then for app in *.app; do ${CMAKE_PREFIX_PATH}/bin/macdeployqt ${app} -dmg; mv "${app%.app}.dmg" "${app%.app}-${LSL_VERSION}-OSX64.dmg}"; done; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cpack; fi
- cd ..