-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
92 lines (85 loc) · 2.99 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# *************************************************************
#
# The OpenTRV project licenses this file to you
# under the Apache Licence, Version 2.0 (the "Licence");
# you may not use this file except in compliance
# with the Licence. You may obtain a copy of the Licence at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the Licence is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the Licence for the
# specific language governing permissions and limitations
# under the Licence.
#
# *************************************************************
# Author(s) / Copyright (s): Mark Hill 2017
# Deniz Erbilgin 2017
# Damon Hart-Davis 2017
dist: trusty
sudo: required
group: edge
language: cpp
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env: COMPILER=g++-4.9
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env: COMPILER=clang++-5.0
before_install:
- $CXX --version
- clang++ --version
- wget https://github.com/google/googletest/archive/release-1.7.0.tar.gz
- tar xf release-1.7.0.tar.gz
- cd googletest-release-1.7.0
- cd make
- make
- sudo cp -a gtest_main.a /usr/lib/libgtest_main.a
- sudo cp -a gtest_main.a /usr/lib/libgtest.a
- cd ..
- sudo cp -a include/gtest /usr/include
- cd "${TRAVIS_BUILD_DIR}"
- chmod +x PortableUnitTestsDriver.sh
# Setup Arduino IDE
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16 -extension RANDR"
- sleep 3
- export DISPLAY=:1.0
- wget http://downloads.arduino.cc/arduino-1.8.1-linux64.tar.xz
- tar xf arduino-1.8.1-linux64.tar.xz
- sudo mv arduino-1.8.1 /usr/local/share/arduino
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
install:
- arduino --pref "boardsmanager.additional.urls=https://raw.githubusercontent.com/opentrv/OpenTRV-Config/master/Arduino/package_opentrv_index.json" --save-prefs
- arduino --install-boards "opentrv:avr"
- arduino --pref "boardsmanager.additional.urls=" --save-prefs
- ls -al
- ln -s $PWD/content/OTAESGCM /usr/local/share/arduino/libraries/OTAESGCM
- sudo cp $PWD/test/platform.local.txt /usr/local/share/arduino/hardware/arduino/avr/
script:
- ./PortableUnitTestsDriver.sh
- arduino --verify --board opentrv:avr:opentrv_v0p2 $PWD/test/test.ino
notifications:
email:
recipients:
on_success: change
on_failure: always
irc:
channels: "irc.z.je#opentrv"
on_success: change
on_failure: change