-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
61 lines (52 loc) · 1.65 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
language: cpp
git:
depth: 5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8-multilib
- g++-4.8-multilib
before_install:
- sudo apt-get update -qq
- if [[ "$CFLAGS" = *"-m32"* ]]; then sudo apt-get install -qq linux-libc-dev:i386 libx11-dev:i386 uuid-dev:i386; fi
- curl -sSL https://cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz | sudo tar -xzC /opt
- sudo ifconfig lo multicast
- sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev lo
compiler:
- gcc-4.8
env:
matrix:
- CFLAGS="-O3 -DNDEBUG -fPIC -msse2 -m32" CXXFLAGS="-O3 -DNDEBUG -fPIC -msse2 -m32"
- CFLAGS="-O3 -DNDEBUG -fPIC" CXXFLAGS="-O3 -DNDEBUG -fPIC"
before_script:
- cd Modelica_DeviceDrivers/Resources
script:
- /opt/cmake-2.8.12.2-Linux-i386/bin/cmake -D CMAKE_C_COMPILER=gcc-4.8 -D CMAKE_CXX_COMPILER=g++-4.8 ./
- make
- cd test/Util
- ./test_MDDMapIntInt
- ./test_MDDMapIntpVoid
- ./test_MDDUtilities
- cd ../OperatingSystem
- ./test_MDD_getTimeMS
- sudo ./test_MDDRealtimeSynchronize_high
- ./test_MDDRealtimeSynchronize_idle
- ./test_MDDRealtimeSynchronize_low
- ./test_MDDRealtimeSynchronize_normal
- sudo ./test_MDDRealtimeSynchronize
- ./test_MDDRTSync
- cd ../Communication
- ./test_EndiannessConversion
- ./test_MDDSerialPackager
- ./test_MDDSharedMemory
- ./test_MDDUDPSocket
- ./test_MDDLCM
- ./test_MDDMQTT
- cd ../..
# Alternatively, instead of individual binary execution, use ctest:
# - sudo /opt/cmake-2.8.12.2-Linux-i386/bin/ctest --output-on-failure -E "MDDSpaceMouse|MDDTCPIPSocketClient|MDDSerialPort|MDDBeep|MDDSocketCAN"
notifications:
email: false
# sudo: false