Skip to content

Commit b1b08e8

Browse files
Re-add basic TravisCI testing
Add basic, fast TravisCI script to keep the TravisCI jobs alive even if GitHub CI goes down. Belt-and-braces, but it's free. Limit the runs on the Travis jobs to 5 short ones in total to match the runtime of the GitHubCI.
1 parent ab9cbf0 commit b1b08e8

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.travis.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# TravisCI left in repo as a backup CI solution in case GitHub CI suffers a
2+
# major disruption. Only a few, quick tests are run in order to keep the
3+
# TravisCI runtime equal to the GitHub CI time (to avoid bottlenecking on
4+
# TravisCI).
5+
#
6+
# If GitHub CI goes away, it would make sense to drop this .YML file and
7+
# use the complete one from release tag 2.7.2
8+
9+
10+
language: bash
11+
os: linux
12+
dist: bionic
13+
14+
git:
15+
depth: 1
16+
submodules: false
17+
18+
before_install:
19+
- git submodule update --init # no recursive update
20+
21+
stages:
22+
- build
23+
- deploy
24+
25+
26+
# Run only 5 jobs since TravisCI only allows 5 in parallel
27+
jobs:
28+
include:
29+
- name: "Platform.IO"
30+
stage: build
31+
script: $TRAVIS_BUILD_DIR/tests/platformio.sh
32+
install:
33+
- sudo apt-get install python3-pip python3-setuptools
34+
env:
35+
- BUILD_PARITY=custom mod=10 rem=1
36+
37+
- name: "Build 1/4"
38+
stage: build
39+
script: $TRAVIS_BUILD_DIR/tests/build.sh
40+
env:
41+
- BUILD_PARITY=custom mod=10 rem=1
42+
43+
- name: "Build 2/4"
44+
stage: build
45+
script: $TRAVIS_BUILD_DIR/tests/build.sh
46+
env:
47+
- BUILD_PARITY=custom mod=10 rem=2
48+
49+
- name: "Build 3/4"
50+
stage: build
51+
script: $TRAVIS_BUILD_DIR/tests/build.sh
52+
env:
53+
- BUILD_PARITY=custom mod=10 rem=3
54+
55+
- name: "Build 4/4"
56+
stage: build
57+
script: $TRAVIS_BUILD_DIR/tests/build.sh
58+
env:
59+
- BUILD_PARITY=custom mod=10 rem=4
60+
61+
notifications:
62+
email:
63+
on_success: change
64+
on_failure: change
65+
webhooks:
66+
urls:
67+
- secure: "dnSY+KA7NK+KD+Z71copmANDUsyVePrZ0iXvXxmqMEQv+lp3j2Z87G5pHn7j0WNcNZrejJqOdbElJ9Q4QESRaAYxTR7cA6ameJeEKHiFJrQtN/4abvoXb9E1CxpL8aNON/xgnqCk+fycOK3nbWWXlJBodzBm7KN64vrcHO7et+M="
68+
on_success: change # options: [always|never|change] default: always
69+
on_failure: always # options: [always|never|change] default: always
70+
on_start: false # default: false

0 commit comments

Comments
 (0)