forked from labstreaminglayer/App-LabRecorder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (37 loc) · 1.24 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
language: cpp
dist: xenial
compiler: clang
env:
LSLDIST_URL="https://github.com/sccn/liblsl/releases/download/"
UBUNTU_DIST="xenial"
LSL_VERSION="1.13.0-b3"
- CMakeArgs=""
matrix:
include:
# - os: linux
# addons:
# apt:
# packages:
# - qt5-default
# before_script:
# - travis_retry wget ${LSLDIST_URL}/liblsl-${LSL_VERSION}-Linux64-${UBUNTU_DIST}.deb
# - dpkg -x *.deb LSL
# - export LSL_INSTALL_ROOT=LSL/usr
# - export CMakeArgs="-DLSL_UNIXFOLDERS=1 ${CMakeArgs}"
- os: osx
before_install:
- brew install qt
- export CMAKE_PREFIX_PATH=/usr/local/opt/qt/
before_script:
- travis_retry wget ${LSLDIST_URL}/${LSL_VERSION}/liblsl-${LSL_VERSION}-OSX64.tar.bz2
- mkdir LSL; tar -xf *.tar.bz2 -C LSL
- export LSL_INSTALL_ROOT=LSL
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 ..