-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
56 lines (50 loc) · 1.93 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
sudo: required
dist: trusty
group: edge
env:
global:
- XC16_URL="http://ww1.microchip.com/downloads/en/DeviceDoc/xc16-v1.35-full-install-linux-installer.run"
- XC16_PATH="/opt/microchip/xc16/v1.35/bin"
- XC16_DL="$HOME/xc16.run"
- XC32_URL="http://ww1.microchip.com/downloads/en/DeviceDoc/xc32-v2.10-full-install-linux-installer.run"
- XC32_PATH="/opt/microchip/xc32/v2.10/bin"
- XC32_DL="$HOME/xc32.run"
matrix:
- TEST=tools
- TEST=tests16
- TEST=tests32
before_install:
- if [[ "$TEST" == "tests16" ]]; then
sudo dpkg --add-architecture i386 && sudo apt-get update
&& sudo apt-get install libc6:i386 && wget -O "$XC16_DL" "$XC16_URL"
&& chmod +x "$XC16_DL"
&& sudo "$XC16_DL" --mode unattended --netservername localhost
&& export PATH="$PATH:$XC16_PATH"
&& echo "xc16 installed";
fi
- if [[ "$TEST" == "tests32" ]]; then
sudo dpkg --add-architecture i386 && sudo apt-get update
&& sudo apt-get install libc6:i386 && wget -O "$XC32_DL" "$XC32_URL"
&& chmod +x "$XC32_DL"
&& sudo "$XC32_DL" --mode unattended --netservername localhost
&& export PATH="$PATH:$XC32_PATH"
&& echo "xc32 installed";
fi
- if [[ "$TEST" == "tools" ]]; then
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty universe"
&& sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu trusty main"
&& sudo apt-get install debian-keyring debian-archive-keyring
&& sudo apt-key update
&& sudo apt-get update -qq
&& sudo apt-get install -qq qt5-qmake qtbase5-dev qt5-default qttools5-dev-tools libqt5serialport5-dev
&& sudo apt-get install -qq zlib1g-dev libudev-dev
&& echo "Qt5 installed";
fi
language: cpp
# Compiler selection
compiler:
- gcc
install: true
# Build steps
script:
- make $TEST