Skip to content

Commit 3c51a8b

Browse files
committed
include a test matrix for PRs; one for the whole bundle, and one for a single library.
1 parent 6fa843f commit 3c51a8b

File tree

1 file changed

+32
-4
lines changed

1 file changed

+32
-4
lines changed

.travis.yml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
sudo: false
2-
dist: trusty
1+
dist: xenial
32
language: python
43
python:
54
- '3.6'
6-
script:
7-
- python3 -m circuitpython_build_tools.scripts.build_mpy_cross circuitpython_build_tools/data/
85

6+
before_deploy:
7+
script:
8+
- python3 -u -m circuitpython_build_tools.scripts.build_mpy_cross circuitpython_build_tools/data/
99

1010
deploy:
1111
provider: pypi
@@ -15,3 +15,31 @@ deploy:
1515
skip_cleanup: true
1616
on:
1717
tags: true
18+
19+
matrix:
20+
include:
21+
- python: "3.6"
22+
name: "Test CircuitPython Bundle"
23+
if: type = pull_request
24+
script:
25+
- echo "Building mpy-cross" && echo "travis_fold:start:mpy-cross"
26+
- python3 -u -m circuitpython_build_tools.scripts.build_mpy_cross circuitpython_build_tools/data/
27+
- echo "travis_fold:end:mpy-cross"
28+
- pip install -e .
29+
- echo "Cloning Adafruit_CircuitPython_Bundle" && echo "travis_fold:start:clone"
30+
- git clone --recurse-submodules https://github.com/adafruit/Adafruit_CircuitPython_Bundle.git
31+
- echo "travis_fold:end:clone"
32+
- cd Adafruit_CircuitPython_Bundle
33+
- circuitpython-build-bundles --filename_prefix test-bundle --library_location libraries --library_depth 2
34+
35+
- python: "3.6"
36+
name: "Test Single Library Bundle"
37+
if: type = pull_request
38+
script:
39+
- echo "Building mpy-cross" && echo "travis_fold:start:mpy-cross"
40+
- python3 -u -m circuitpython_build_tools.scripts.build_mpy_cross circuitpython_build_tools/data/
41+
- echo "travis_fold:end:mpy-cross"
42+
- pip install -e .
43+
- git clone https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git
44+
- cd Adafruit_CircuitPython_FeatherWing
45+
- circuitpython-build-bundles --filename_prefix test-single --library_location .

0 commit comments

Comments
 (0)