-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
92 lines (78 loc) · 3.12 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
92
language: python
python:
- "2.7"
os: linux
dist: trusty
# Short duration job, use the container/without sudo image as it boots faster
sudo: false
# Use the latest Travis images since they are more up to date than the stable release.
group: edge
before_cache:
- rm -f $HOME/.cache/pip/log/debug.log # erase lo
cache:
directories:
- "~/.platformio"
- $HOME/.cache/pip # pip cache
env:
global:
# Warnings are errors
- PLATFORMIO_BUILD_FLAGS="-Werror"
matrix:
fast_finish: true
include:
- env: BOARD=teensylc PLATFORMIO_CI_SRC=examples/DimmerWithMaster
- env: BOARD=teensylc PLATFORMIO_CI_SRC=examples/TeensyDMXSend
- env: BOARD=teensylc PLATFORMIO_CI_SRC=examples/TeensyDMXRecv
- env: BOARD=teensylc PLATFORMIO_CI_SRC=examples/TeensyRDMController
- env: BOARD=teensy30 PLATFORMIO_CI_SRC=examples/DimmerWithMaster
- env: BOARD=teensy30 PLATFORMIO_CI_SRC=examples/TeensyDMXSend
- env: BOARD=teensy30 PLATFORMIO_CI_SRC=examples/TeensyDMXRecv
- env: BOARD=teensy30 PLATFORMIO_CI_SRC=examples/TeensyRDMController
- env: BOARD=teensy31 PLATFORMIO_CI_SRC=examples/DimmerWithMaster
- env: BOARD=teensy31 PLATFORMIO_CI_SRC=examples/TeensyDMXSend
- env: BOARD=teensy31 PLATFORMIO_CI_SRC=examples/TeensyDMXRecv
- env: BOARD=teensy31 PLATFORMIO_CI_SRC=examples/TeensyRDMController
- env: BOARD=teensy35 PLATFORMIO_CI_SRC=examples/DimmerWithMaster
- env: BOARD=teensy35 PLATFORMIO_CI_SRC=examples/TeensyDMXSend
- env: BOARD=teensy35 PLATFORMIO_CI_SRC=examples/TeensyDMXRecv
- env: BOARD=teensy35 PLATFORMIO_CI_SRC=examples/TeensyRDMController
- env: BOARD=teensy36 PLATFORMIO_CI_SRC=examples/DimmerWithMaster
- env: BOARD=teensy36 PLATFORMIO_CI_SRC=examples/TeensyDMXSend
- env: BOARD=teensy36 PLATFORMIO_CI_SRC=examples/TeensyDMXRecv
- env: BOARD=teensy36 PLATFORMIO_CI_SRC=examples/TeensyRDMController
- os: linux
dist: trusty
# Short duration job, would use the container/without sudo image as it boots faster, but we need a backported lintian, so don't
sudo: required
env: TASK='spellintian'
addons:
apt:
packages:
- moreutils
- os: linux
dist: trusty
# Short duration job, would use the container/without sudo image as it boots faster, but we need a backported lintian, so don't
sudo: required
env: TASK='spellintian-duplicates'
addons:
apt:
packages:
- moreutils
- os: linux
dist: trusty
env: TASK='codespell'
addons:
apt:
packages:
- moreutils
allow_failures:
- os: linux
dist: trusty
env: TASK='spellintian-duplicates'
before_install:
- if [ "$TASK" == "spellintian" -o "$TASK" == "spellintian-duplicates" ]; then sudo add-apt-repository ppa:waja/trusty-backports -y; sudo apt-get update -qq; sudo apt-get install lintian -y; fi # Install a late enough lintian
install:
- if [ -z "$TASK" ]; then pip install --upgrade platformio; fi
- if [ "$TASK" = "codespell" ]; then pip install --upgrade git+https://github.com/codespell-project/codespell.git; fi
script:
- bash -ex .travis-ci.sh