8000 Build everything and run tests · domdfcoding/circuitpython@6b743e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b743e2

Browse files
committed
Build everything and run tests
1 parent 6c023ad commit 6b743e2

File tree

1 file changed

+56
-64
lines changed

1 file changed

+56
-64
lines changed

azure-pipelines.yml

Lines changed: 56 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,22 @@ jobs:
1212
vmImage: 'Ubuntu-16.04'
1313
strategy:
1414
matrix:
15-
trinket_m0:
16-
TRAVIS_BOARDS: 'trinket_m0'
17-
feather_m0_express:
18-
TRAVIS_BOARDS: 'feather_m0_express'
15+
adafruit_samd_m0_boards:
16+
TRAVIS_BOARDS: 'trinket_m0 pirkey_m0 gemma_m0'
17+
samd_m0_boards:
18+
TRAVIS_BOARDS: 'sparkfun_lumidrive meowmeow uchip arduino_zero arduino_mkr1300 arduino_mkrzero pewpew10 sparkfun_samd21_mini sparkfun_samd21_dev catwan_usbstick'
19+
feather_samd_m0_boards:
20+
TRAVIS_BOARDS: 'feather_radiofruit_zigbee feather_m0_rfm69 feather_m0_rfm9x feather_m0_adalogger feather_m0_basic'
21+
samd_m0_express_boards:
22+
TRAVIS_BOARDS: 'circuitplayground_express_crickit circuitplayground_express metro_m0_express sparkfun_redboard_turbo hallowing_m0_express itsybitsy_m0_express feather_m0_express_crickit feather_m0_express'
23+
nrf_boards:
24+
TRAVIS_BOARDS: 'pca10056 pca10059 makerdiary_nrf52840_mdk makerdiary_nrf52840_mdk_usb_dongle particle_boron particle_argon particle_xenon sparkfun_nrf52840_mini'
25+
nrf_express_boards:
26+
TRAVIS_BOARDS: 'feather_nrf52840_express'
27+
samd_m4_boards:
28+
TRAVIS_BOARDS: 'mini_sam_m4'
29+
samd_m4_express_boards:
30+
TRAVIS_BOARDS: 'grandcentral_m4_express metro_m4_express trellis_m4_express pybadge sam32 itsybitsy_m4_express feather_m4_express pyportal'
1931

2032
steps:
2133
- checkout: self
@@ -43,67 +55,47 @@ jobs:
4355
python3 -u build_release_files.py
4456
displayName: 'Build board'
4557
workingDirectory: 'tools'
58+
- job: Test
59+
pool:
60+
vmImage: 'Ubuntu-16.04'
61+
steps:
62+
- checkout: self
63+
submodules: recursive
64+
# - bash: |
65+
# wget https://s3.amazonaws.com/adafruit-circuit-python/gcc-arm-embedded_7-2018q2-1~xenial1_amd64.deb
66+
# sudo dpkg -i gcc-arm-embedded*_amd64.deb
67+
# displayName: 'Install ARM GCC'
68+
- bash: |
69+
sudo apt-get install gettext
70+
displayName: 'Install native deps'
71+
- bash: |
72+
sudo apt-get install -y python3-pip
73+
pip3 install --user sh click Sphinx sphinx-rtd-theme recommonmark polib
74+
pip3 install --upgrade --user cpp-coveralls
75+
displayName: 'Install python deps'
76+
- bash: |
77+
gcc --version
78+
arm-none-eabi-gcc --version
79+
python3 --version
80+
displayName: 'Print versions'
81+
- bash: |
82+
make -C mpy-cross -j2
83+
displayName: 'Build mpy-cross'
84+
- bash: |
85+
make -C ports/unix deplibs -j2
86+
make -C ports/unix -j2
87+
make -C ports/unix coverage -j2
88+
displayName: 'Build unix'
89+
workingDirectory: 'tools'
90+
- bash: |
91+
MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1
92+
displayName: 'Test all'
93+
workingDirectory: 'tests'
94+
- bash: |
95+
MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 -d thread
96+
displayName: 'Test threads'
97+
workingDirectory: 'tests'
4698
47-
# # Use unbuffered output because building all the releases can take a long time.
48-
# # Travis will cancel the job if it sees no output for >10 minutes.
49-
# - cd tools &&
50-
# - cd ..
51-
52-
# before_script:
53-
# # Expand the git tree back to 4.0.0-alpha.1 and then fetch the latest tag.
54-
# - LAST_TAG=`git ls-remote --quiet --tags --sort=version:refname | egrep -o "refs/tags/[0-9]+.*\$" | tail -n 1`
55-
# - git fetch --depth 1 origin $LAST_TAG:$LAST_TAG
56-
# - git describe --dirty --always --tags
57-
# - function var_search () { case "$1" in *$2*) true;; *) false;; esac; }
58-
# - sudo dpkg --add-architecture i386
59-
#
60-
#
61-
# - (! var_search "${TRAVIS_SDK-}" arm || ())
62-
#
63-
# # For huzzah builds
64-
# - (! var_search "${TRAVIS_SDK-}" esp8266 || (wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz && tar -C .. -xaf xtensa-lx106-elf-standalone.tar.gz))
65-
# - if var_search "${TRAVIS_SDK-}" esp8266 ; then PATH=$(readlink -f ../xtensa-lx106-elf/bin):$PATH; fi
66-
#
67-
# # For coverage testing (upgrade is used to get latest urllib3 version)
68-
# - sudo apt-get install -y python3-pip
69-
# - pip3 install --user sh click
70-
# - ([[ -z "$TRAVIS_TESTS" ]] || sudo pip install --upgrade cpp-coveralls)
71-
# - (! var_search "${TRAVIS_TESTS-}" docs || pip install --user Sphinx sphinx-rtd-theme recommonmark)
72-
# - (! var_search "${TRAVIS_TESTS-}" translations || pip3 install --user polib)
73-
#
74-
# # report some good version numbers to the build
75-
# - gcc --version
76-
# - (! var_search "${TRAVIS_SDK-}" arm || arm-none-eabi-gcc --version)
77-
# - (! var_search "${TRAVIS_SDK-}" esp8266 || xtensa-lx106-elf-gcc --version)
78-
# - python3 --version
79-
#
80-
# script:
81-
# # Build mpy-cross first because other builds depend on it.
82-
# - echo 'Building mpy-cross' && echo 'travis_fold:start:mpy-cross'
83-
# - make -C mpy-cross -j2 ; S=$? ; echo $S > status ; (exit $S)
84-
# - echo 'travis_fold:end:mpy-cross' && tools/print_status.py status
85-
#
86-
# # Use unbuffered output because building all the releases can take a long time.
87-
# # Travis will cancel the job if it sees no output for >10 minutes.
88-
# - cd tools && python3 -u build_release_files.py
89-
# - cd ..
90-
#
91-
# - echo 'Building unix' && echo 'travis_fold:start:unix'
92-
# - (! var_search "${TRAVIS_TESTS-}" unix || (make -C ports/unix deplibs -j2 && make -C ports/unix -j2 && make -C ports/unix coverage -j2)) ; S=$? ; echo $S > status ; (exit $S)
93-
# - echo 'travis_fold:end:unix' && tools/print_status.py status
94-
#
95-
# # run tests without coverage info
96-
# #- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests -j1)
97-
# #- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests -j1 --emit native)
98-
#
99-
# # run tests with coverage info
100-
# - echo 'Test all' && echo 'travis_fold:start:test_all'
101-
# - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1)) ; S=$? ; echo $S > status ; (exit $S)
102-
# - echo 'travis_fold:end:test_all' && tools/print_status.py status
103-
#
104-
# - echo 'Test threads' && echo 'travis_fold:start:test_threads'
105-
# - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 -d thread)) ; S=$? ; echo $S > status ; (exit $S)
106-
# - echo 'travis_fold:end:test_threads' && tools/print_status.py status
10799
#
108100
# - echo 'Testing with native' && echo 'travis_fold:start:test_native'
109101
# - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native)) ; S=$? ; echo $S > status ; (exit $S)

0 commit comments

Comments
 (0)
0