forked from openLRSng/openLRSng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
127 lines (119 loc) · 3.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
dist: trusty
sudo: false
language: python
python:
- "2.7"
notifications:
email: false
# Cache PlatformIO packages using Travis CI container-based infrastructure
sudo: false
cache:
pip: true
directories:
- "~/.platformio"
env:
- TEST_PLATFORM="-e BOARD_TYPE_0"
before_install:
# Fetch the tag information for the current branch
- git fetch origin --tags
#
# Publish the buildroot script folder
- chmod +x ${TRAVIS_BUILD_DIR}/buildroot/bin/*
- export PATH=${TRAVIS_BUILD_DIR}/buildroot/bin/:${PATH}
install:
# Install PlatformIO core
- pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
#
# Enable warnings-as-errors build option
- export PLATFORMIO_BUILD_FLAGS="-Werror"
before_script:
# Update PlatformIO packages
- platformio update
#
# Change current working directory to the build dir
- cd ${TRAVIS_BUILD_DIR}
#
# Backup default configuration (used by restore_configs)
- backup_configs
#
# Enable strict CI checking for PlatformIO
- export CI=true
script:
# Build every config
#
- restore_configs
- opt_enable BOARD_TYPE COMPILE_TX
#
- export TEST_PLATFORM="-e BOARD_TYPE_0"
- opt_set BOARD_TYPE 0
# TX-only
# - opt_set COMPILE_TX 0
# - build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_1"
- opt_set BOARD_TYPE 1
# TX-only
# - opt_set COMPILE_TX 0
# - build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_2"
- opt_set BOARD_TYPE 2
- opt_set COMPILE_TX 0
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_3"
- opt_set BOARD_TYPE 3
- opt_set COMPILE_TX 0
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_4"
- opt_set BOARD_TYPE 4
# TX-only
# - opt_set COMPILE_TX 0
# - build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_5"
- opt_set BOARD_TYPE 5
- opt_set COMPILE_TX 0
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_6"
- opt_set BOARD_TYPE 6
# TX-only
# - opt_set COMPILE_TX 0
# - build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_7"
- opt_set BOARD_TYPE 7
- opt_set COMPILE_TX 0
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_8"
- opt_set BOARD_TYPE 8
- opt_set COMPILE_TX 0
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
- export TEST_PLATFORM="-e BOARD_TYPE_9"
- opt_set BOARD_TYPE 9
- opt_set COMPILE_TX 0
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
- opt_set COMPILE_TX 1
- build_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}