1
+ language : python
2
+ python :
3
+ ' 2.7'
1
4
2
5
env :
3
6
global :
15
18
pip : true
16
19
directories :
17
20
- $HOME/.cache/apt
21
+ - $HOME/gcc-arm-none-eabi-6-2017-q2-update
18
22
19
23
before_install :
20
24
- bash -c "$STATUS" pending "Local $NAME testing is in progress"
@@ -36,8 +40,7 @@ after_failure:
36
40
37
41
matrix :
38
42
include :
39
- - python : ' 2.7'
40
- env :
43
+ - env :
41
44
- NAME=docs
42
45
install :
43
46
# Install dependencies
@@ -68,19 +71,13 @@ matrix:
68
71
find -name "*.s" | tee BUILD/badasm |
69
72
sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
70
73
71
- - python : ' 2.7'
72
- env :
74
+ - env :
73
75
- NAME=tools
74
76
install :
75
77
# Install dependencies
76
78
- sudo apt-get install gcc-arm-embedded
77
- - pip install --user -r requirements.txt
78
- - pip install --user pytest
79
- - pip install --user pylint
80
- - pip install --user hypothesis
81
- - pip install --user mock
82
- - pip install --user coverage
83
- - pip install --user coveralls
79
+ - pip install -r requirements.txt
80
+ - pip install pytest pylint hypothesis mock coverage coveralls
84
81
# Print versions we use
85
82
- arm-none-eabi-gcc --version
86
83
- python --version
@@ -96,14 +93,13 @@ matrix:
96
93
# Report success since we have overridden default behaviour
97
94
- bash -c "$STATUS" success "Local $NAME testing has passed"
98
95
99
- - python : ' 2.7'
100
- env :
96
+ - env :
101
97
- NAME=events
102
98
- EVENTS=events
103
99
install :
104
100
# Install dependencies
105
101
- sudo apt-get install gcc-arm-embedded
106
- - pip install --user - r requirements.txt
102
+ - pip install -r requirements.txt
107
103
# Print versions we use
108
104
- arm-none-eabi-gcc --version
109
105
- gcc --version
@@ -115,14 +111,13 @@ matrix:
115
111
# Run local equeue tests
116
112
- make -C $EVENTS/equeue test
117
113
118
- - python : ' 2.7'
119
- env :
114
+ - env :
120
115
- NAME=littlefs
121
116
- LITTLEFS=features/filesystem/littlefs
122
117
install :
123
118
# Install dependencies
124
119
- sudo apt-get install gcc-arm-embedded fuse libfuse-dev
125
- - pip install --user - r requirements.txt
120
+ - pip install -r requirements.txt
126
121
- git clone https://github.com/armmbed/spiflash-driver.git
127
122
# Print versions
128
123
- arm-none-eabi-gcc --version
@@ -162,13 +157,16 @@ matrix:
162
157
- ls MOUNT/littlefs
163
158
- CFLAGS="-Wno-format" make -CMOUNT/littlefs -B test_dirs QUIET=1
164
159
165
- - python : ' 2.7'
166
- env :
167
- - NAME=mbed2
160
+ - &mbed-2
161
+ env : NAME=mbed2-NXP
168
162
install :
169
163
# Install dependencies
170
- - sudo apt-get install gcc-arm-embedded
171
- - pip install --user -r requirements.txt
164
+ - export GCC_DIR=$HOME/gcc-arm-none-eabi-6-2017-q2-update
165
+ - export GCC_ARCHIVE=$HOME/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2
166
+ - export GCC_URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-linux.tar.bz2?revision=2cc92fb5-3e0e-402d-9197-bdfc8224d8a5?product=GNU%20Arm%20Embedded%20Toolchain,64-bit,,Linux,6-2017-q2-update
167
+ - if [ ! -e $GCC_DIR/bin/arm-none-eabi-gcc ]; then wget $GCC_URL -O $GCC_ARCHIVE; tar xfj $GCC_ARCHIVE -C $HOME; fi
168
+ - export PATH=$PATH:$GCC_DIR/bin
169
+ - pip install -r requirements.txt
172
170
# Print versions we use
173
171
- arm-none-eabi-gcc --version
174
172
- python --version
@@ -177,6 +175,16 @@ matrix:
177
175
- mkdir BUILD
178
176
script :
179
177
# Run local mbed 2 testing
180
- # Note: These take ~40 minutes to run
181
- - python2 -u tools/build_travis.py | sed -n '/^Executing/p'
182
-
178
+ - python2 -u tools/build_travis.py --vendor "${NAME#mbed2-}"
179
+ - << : *mbed-2
180
+ env : NAME=mbed2-STM
181
+ - << : *mbed-2
182
+ env : NAME=mbed2-NORDIC
183
+ - << : *mbed-2
184
+ env : NAME=mbed2-SILICON_LABS
185
+ - << : *mbed-2
186
+ env : NAME=mbed2-MAXIM
187
+ - << : *mbed-2
188
+ env : NAME=mbed2-ATMEL
189
+ - << : *mbed-2
190
+ env : NAME=mbed2-NUVOTON
0 commit comments