-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
65 lines (63 loc) · 1.71 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Enable C++ support
language: cpp
jobs:
include:
- os: linux
sudo: required
dist: xenial
addons:
apt_packages:
- qt5-default
- qtbase5-dev
- libqt5webkit5-dev
- libqt5svg5-dev
- libqt5opengl5-dev
services:
- xvfb
compiler: gcc
env:
- QT_SELECT=qt5
- HOPSAN_BUILD_QMAKE_SPEC=linux-g++
install:
- cd dependencies
- ./download-dependencies.py discount fmilibrary qwt zeromq cppzmq msgpack-c katex tclap
- cd ..
- os: osx
compiler: clang
env:
- HOPSAN_BUILD_QMAKE_SPEC=macx-clang
- HOMEBREW_NO_AUTO_UPDATE=1
install:
- brew install qt
- brew link --force qt
- which qmake
- cd dependencies
- ./download-dependencies.py discount fmilibrary qwt zeromq cppzmq msgpack-c katex tclap
- cd ..
# Build steps
script:
- bash --version
- echo OSType $OSTYPE
- cd dependencies
- source ./setHopsanBuildPaths.sh
- ./setupDiscount.sh
- ./setupFMILibrary.sh
- ./setupQwt.sh
- ./setupZeroMQ.sh
- ./setupMsgpack.sh
- ./setupKatex.sh
- ./setupTclap.sh
- cd ..
- mkdir -p build
- cd build
- ${HOPSAN_BUILD_QT_QMAKE} ../HopsanNG.pro -r -spec ${HOPSAN_BUILD_QMAKE_SPEC} -config release
- cd ..
- make -j6 -C build
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then xvfb-run -a ./runUnitTests.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./runUnitTests.sh ; fi
- ./runValidationTests.sh
- cd bin
- ls -l
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then otool -lv hopsancli ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then otool -lv hopsangui ; fi
# - ./hopsangui ../Scripts/HCOM/exit.hcom