forked from esp8266/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (59 loc) · 1.91 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
# TravisCI left in repo as a backup CI solution in case GitHub CI suffers a
# major disruption. Only a few, quick tests are run in order to keep the
# TravisCI runtime equal to the GitHub CI time (to avoid bottlenecking on
# TravisCI).
#
# If GitHub CI goes away, it would make sense to drop this .YML file and
# use the complete one from release tag 2.7.2
language: bash
os: linux
dist: bionic
git:
depth: 1
submodules: false
before_install:
- git submodule update --init # no recursive update
stages:
- build
- deploy
# Run only 5 jobs since TravisCI only allows 5 in parallel
jobs:
include:
- name: "Platform.IO"
stage: build
script: $TRAVIS_BUILD_DIR/tests/platformio.sh
install:
- sudo apt-get install python3-pip python3-setuptools
env:
# PIO is very slow, so do 1/2 as many builds as Arduino
- BUILD_PARITY=custom mod=20 rem=5
- name: "Build 1/4"
stage: build
script: $TRAVIS_BUILD_DIR/tests/build.sh
env:
- BUILD_PARITY=custom mod=10 rem=1
- name: "Build 2/4"
stage: build
script: $TRAVIS_BUILD_DIR/tests/build.sh
env:
- BUILD_PARITY=custom mod=10 rem=2
- name: "Build 3/4"
stage: build
script: $TRAVIS_BUILD_DIR/tests/build.sh
env:
- BUILD_PARITY=custom mod=10 rem=3
- name: "Build 4/4"
stage: build
script: $TRAVIS_BUILD_DIR/tests/build.sh
env:
- BUILD_PARITY=custom mod=10 rem=4
notifications:
email:
on_success: change
on_failure: change
webhooks:
urls:
- secure: "dnSY+KA7NK+KD+Z71copmANDUsyVePrZ0iXvXxmqMEQv+lp3j2Z87G5pHn7j0WNcNZrejJqOdbElJ9Q4QESRaAYxTR7cA6ameJeEKHiFJrQtN/4abvoXb9E1CxpL8aNON/xgnqCk+fycOK3nbWWXlJBodzBm7KN64vrcHO7et+M="
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false