Skip to content

Commit a7aaee3

Browse files
authored
Merge pull request #5729 from 0xc0170/fix_travis_time
Travis: define matrix builds for mbed 2 jobs
2 parents 4d81ead + 8cdb2a3 commit a7aaee3

File tree

2 files changed

+377
-305
lines changed

2 files changed

+377
-305
lines changed

.travis.yml

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
language: python
2+
python:
3+
'2.7'
14

25
env:
36
global:
@@ -15,6 +18,7 @@ cache:
1518
pip: true
1619
directories:
1720
- $HOME/.cache/apt
21+
- $HOME/gcc-arm-none-eabi-6-2017-q2-update
1822

1923
before_install:
2024
- bash -c "$STATUS" pending "Local $NAME testing is in progress"
@@ -36,8 +40,7 @@ after_failure:
3640

3741
matrix:
3842
include:
39-
- python: '2.7'
40-
env:
43+
- env:
4144
- NAME=docs
4245
install:
4346
# Install dependencies
@@ -68,19 +71,13 @@ matrix:
6871
find -name "*.s" | tee BUILD/badasm |
6972
sed -e "s/^/Bad Assembler file name found: /" && [ ! -s BUILD/badasm ]
7073
71-
- python: '2.7'
72-
env:
74+
- env:
7375
- NAME=tools
7476
install:
7577
# Install dependencies
7678
- 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
8481
# Print versions we use
8582
- arm-none-eabi-gcc --version
8683
- python --version
@@ -96,14 +93,13 @@ matrix:
9693
# Report success since we have overridden default behaviour
9794
- bash -c "$STATUS" success "Local $NAME testing has passed"
9895

99-
- python: '2.7'
100-
env:
96+
- env:
10197
- NAME=events
10298
- EVENTS=events
10399
install:
104100
# Install dependencies
105101
- sudo apt-get install gcc-arm-embedded
106-
- pip install --user -r requirements.txt
102+
- pip install -r requirements.txt
107103
# Print versions we use
108104
- arm-none-eabi-gcc --version
109105
- gcc --version
@@ -115,14 +111,13 @@ matrix:
115111
# Run local equeue tests
116112
- make -C $EVENTS/equeue test
117113

118-
- python: '2.7'
119-
env:
114+
- env:
120115
- NAME=littlefs
121116
- LITTLEFS=features/filesystem/littlefs
122117
install:
123118
# Install dependencies
124119
- sudo apt-get install gcc-arm-embedded fuse libfuse-dev
125-
- pip install --user -r requirements.txt
120+
- pip install -r requirements.txt
126121
- git clone https://github.com/armmbed/spiflash-driver.git
127122
# Print versions
128123
- arm-none-eabi-gcc --version
@@ -162,13 +157,16 @@ matrix:
162157
- ls MOUNT/littlefs
163158
- CFLAGS="-Wno-format" make -CMOUNT/littlefs -B test_dirs QUIET=1
164159

165-
- python: '2.7'
166-
env:
167-
- NAME=mbed2
160+
- &mbed-2
161+
env: NAME=mbed2-NXP
168162
install:
169163
# 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
172170
# Print versions we use
173171
- arm-none-eabi-gcc --version
174172
- python --version
@@ -177,6 +175,16 @@ matrix:
177175
- mkdir BUILD
178176
script:
179177
# 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

Comments
 (0)