forked from AversivePlusPlus/AversivePlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (45 loc) · 1.37 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
language: c++
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- gcc-5
- g++-5
- git
- make
- cmake
- cmake-data
before_install:
# avr-gcc
- wget http://fr.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-avr/gcc-avr_4.8-2.1_amd64.deb
- wget http://fr.archive.ubuntu.com/ubuntu/pool/universe/b/binutils-avr/binutils-avr_2.23.1-2.1_amd64.deb
- wget http://fr.archive.ubuntu.com/ubuntu/pool/universe/a/avr-libc/avr-libc_1.8.0-4.1_all.deb
- wget http://fr.archive.ubuntu.com/ubuntu/pool/main/m/mpclib3/libmpc3_1.0.1-1ubuntu1_amd64.deb
- wget http://fr.archive.ubuntu.com/ubuntu/pool/main/m/mpfr4/libmpfr4_3.1.2-1_amd64.deb
- sudo dpkg -i binutils-avr*.deb
- sudo dpkg -i libmpfr4*.deb
- sudo dpkg -i libmpc3*.deb
- sudo dpkg -i gcc-avr*.deb
- sudo dpkg -i avr-libc*.deb
- avr-g++ --version
# Qt5
- sudo add-apt-repository --yes ppa:beineri/opt-qt551
- sudo apt-get update -qq
- sudo apt-get install -qq qt55base
- export CMAKE_PREFIX_PATH=/opt/qt55/lib/cmake
- sudo ln -s -T /opt/qt55/include /usr/include/qt5
- export LIBRARY_PATH=/opt/qt55/lib
- export LD_LIBRARY_PATH=/opt/qt55/lib
# Conan
- (cd tools/conan && sudo pip install -r conans/requirements.txt)
- export CC=gcc-5
- export CXX=g++-5
# Submodules
- git submodule update --init
install:
- make export
script:
- make test