|
6 | 6 | trigger:
|
7 | 7 | - azure-pipelines
|
8 | 8
|
9 |
| -pool: |
10 |
| - vmImage: 'Ubuntu-16.04' |
| 9 | +jobs: |
| 10 | +- job: Build ARM |
| 11 | + pool: |
| 12 | + vmImage: 'Ubuntu-16.04' |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + trinket_m0: |
| 16 | + TRAVIS_BOARDS: 'trinket_m0' |
| 17 | + feather_m0_express: |
| 18 | + TRAVIS_BOARDS: 'feather_m0_express' |
11 | 19 |
|
12 |
| -steps: |
13 |
| -- script: | |
14 |
| - make |
15 |
| - displayName: 'make' |
| 20 | + steps: |
| 21 | + - script: | |
| 22 | + wget https://s3.amazonaws.com/adafruit-circuit-python/gcc-arm-embedded_7-2018q2-1~xenial1_amd64.deb |
| 23 | + sudo dpkg -i gcc-arm-embedded*_amd64.deb |
| 24 | + displayName: 'Install GCC' |
| 25 | + - script: | |
| 26 | + gcc --version |
| 27 | + arm-none-eabi-gcc --version |
| 28 | + python3 --version |
| 29 | + displayName: 'Print versions' |
| 30 | + - script: | |
| 31 | + make -C mpy-cross -j2 |
| 32 | + displayName: 'Build mpy-cross' |
| 33 | + - script: | |
| 34 | + python3 -u build_release_files.py |
| 35 | + displayName: 'Build board' |
| 36 | + workingDirectory: 'tools' |
| 37 | +
|
| 38 | +# # Use unbuffered output because building all the releases can take a long time. |
| 39 | +# # Travis will cancel the job if it sees no output for >10 minutes. |
| 40 | +# - cd tools && |
| 41 | +# - cd .. |
| 42 | + |
| 43 | +# before_script: |
| 44 | +# # Expand the git tree back to 4.0.0-alpha.1 and then fetch the latest tag. |
| 45 | +# - LAST_TAG=`git ls-remote --quiet --tags --sort=version:refname | egrep -o "refs/tags/[0-9]+.*\$" | tail -n 1` |
| 46 | +# - git fetch --depth 1 origin $LAST_TAG:$LAST_TAG |
| 47 | +# - git describe --dirty --always --tags |
| 48 | +# - function var_search () { case "$1" in *$2*) true;; *) false;; esac; } |
| 49 | +# - sudo dpkg --add-architecture i386 |
| 50 | +# |
| 51 | +# |
| 52 | +# - (! var_search "${TRAVIS_SDK-}" arm || ()) |
| 53 | +# |
| 54 | +# # For huzzah builds |
| 55 | +# - (! 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)) |
| 56 | +# - if var_search "${TRAVIS_SDK-}" esp8266 ; then PATH=$(readlink -f ../xtensa-lx106-elf/bin):$PATH; fi |
| 57 | +# |
| 58 | +# # For coverage testing (upgrade is used to get latest urllib3 version) |
| 59 | +# - sudo apt-get install -y python3-pip |
| 60 | +# - pip3 install --user sh click |
| 61 | +# - ([[ -z "$TRAVIS_TESTS" ]] || sudo pip install --upgrade cpp-coveralls) |
| 62 | +# - (! var_search "${TRAVIS_TESTS-}" docs || pip install --user Sphinx sphinx-rtd-theme recommonmark) |
| 63 | +# - (! var_search "${TRAVIS_TESTS-}" translations || pip3 install --user polib) |
| 64 | +# |
| 65 | +# # report some good version numbers to the build |
| 66 | +# - gcc --version |
| 67 | +# - (! var_search "${TRAVIS_SDK-}" arm || arm-none-eabi-gcc --version) |
| 68 | +# - (! var_search "${TRAVIS_SDK-}" esp8266 || xtensa-lx106-elf-gcc --version) |
| 69 | +# - python3 --version |
| 70 | +# |
| 71 | +# script: |
| 72 | +# # Build mpy-cross first because other builds depend on it. |
| 73 | +# - echo 'Building mpy-cross' && echo 'travis_fold:start:mpy-cross' |
| 74 | +# - make -C mpy-cross -j2 ; S=$? ; echo $S > status ; (exit $S) |
| 75 | +# - echo 'travis_fold:end:mpy-cross' && tools/print_status.py status |
| 76 | +# |
| 77 | +# # Use unbuffered output because building all the releases can take a long time. |
| 78 | +# # Travis will cancel the job if it sees no output for >10 minutes. |
| 79 | +# - cd tools && python3 -u build_release_files.py |
| 80 | +# - cd .. |
| 81 | +# |
| 82 | +# - echo 'Building unix' && echo 'travis_fold:start:unix' |
| 83 | +# - (! 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) |
| 84 | +# - echo 'travis_fold:end:unix' && tools/print_status.py status |
| 85 | +# |
| 86 | +# # run tests without coverage info |
| 87 | +# #- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests -j1) |
| 88 | +# #- (cd tests && MICROPY_CPYTHON3=python3.4 ./run-tests -j1 --emit native) |
| 89 | +# |
| 90 | +# # run tests with coverage info |
| 91 | +# - echo 'Test all' && echo 'travis_fold:start:test_all' |
| 92 | +# - (! 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) |
| 93 | +# - echo 'travis_fold:end:test_all' && tools/print_status.py status |
| 94 | +# |
| 95 | +# - echo 'Test threads' && echo 'travis_fold:start:test_threads' |
| 96 | +# - (! 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) |
| 97 | +# - echo 'travis_fold:end:test_threads' && tools/print_status.py status |
| 98 | +# |
| 99 | +# - echo 'Testing with native' && echo 'travis_fold:start:test_native' |
| 100 | +# - (! 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) |
| 101 | +# - echo 'travis_fold:end:test_native' && tools/print_status.py status |
| 102 | +# |
| 103 | +# - (echo 'Testing with mpy' && echo 'travis_fold:start:test_mpy') |
| 104 | +# - (! var_search "${TRAVIS_TESTS-}" unix || (cd tests && MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --via-mpy -d basics float)) ; S=$? ; echo $S > status ; (exit $S) |
| 105 | +# - echo 'travis_fold:end:test_mpy' && tools/print_status.py status |
| 106 | +# |
| 107 | +# - (echo 'Building docs' && echo 'travis_fold:start:build_docs') |
| 108 | +# - (! var_search "${TRAVIS_TESTS-}" docs || sphinx-build -E -W -b html . _build/html) ; S=$? ; echo $S > status ; (exit $S) |
| 109 | +# - echo 'travis_fold:end:build_docs' && tools/print_status.py status |
| 110 | +# |
| 111 | +# - (echo 'Building translations' && echo 'travis_fold:start:build_translations') |
| 112 | +# - (! var_search "${TRAVIS_TESTS-}" translations || make check-translate) ; S=$? ; echo $S > status ; (exit $S) |
| 113 | +# - echo 'travis_fold:end:build_translations' && tools/print_status.py status |
| 114 | +# |
| 115 | +# # run coveralls coverage analysis (try to, even if some builds/tests failed) |
| 116 | +# #- (cd ports/unix && coveralls --root ../.. --build-root . --gcov $(which gcov) --gcov-options '\-o build-coverage/' --include py --include extmod) |
| 117 | +# |
| 118 | +# - (! var_search "${TRAVIS_TESTS-}" website || (cd tools && python3 build_board_info.py && cd ..)) |
| 119 | +# |
| 120 | +# after_failure: |
| 121 | +# - (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done) |
0 commit comments