Wykres commitów

117 Commity (2b9900380ad2d0ab232e5e3a93c64aaddf90c55a)

Autor SHA1 Wiadomość Data
Joel Stanley 5cfc09ffca travis: For powerpc job, build both UART variants.
The powerpc port can be built with two different UART drivers, so build
both in CI.

The default compiler is now powerpc64le-linux-gnu- so it does not need to
be specified on the command line.
2020-05-29 22:56:31 +10:00
Joel Stanley d6803067c0 travis: Set build name so it appears in the web interfaces.
The env NAME="foo" syntax doesn't appear to set the name in the Travis web
interface.  Instead use the syntax from the docs:

 https://docs.travis-ci.com/user/build-stages/#naming-your-jobs-within-build-stages
2020-05-27 17:06:10 +10:00
Joel Stanley a9d96499b8 travis: Run apt commands once, to slightly speed up the CI. 2020-05-27 17:05:50 +10:00
Jim Mussared 1f1b78752f travis: Build more boards as part of nrf job.
Specifically:
- pca10040: It was already the default.
- microbit: It uses nRF51, has a Cortex-M0, and has additional libraries.
- pca10056: It has USB CDC.
2020-05-15 15:06:02 +10:00
Damien George 4371c971e3 travis: Make sure upstream/master exists when computing size-diff check.
Explicitly add the repository as upstream and fetch the master commit.
This makes this bare-arm/minimal job more robust when finding the
fork-point of a PR relative to upstream/master (especially for forks of
this repo).
2020-04-30 23:04:39 +10:00
Jim Mussared 2e3c42775a unix: Add btstack to the unix submodules list.
But only when bluetooth is enabled, i.e. if building the dev or coverage
variants, and we have libusb available.

Update travis to match, i.e. specify the variant when doing
`make submodules`.
2020-04-29 16:54:12 +10:00
Damien George 8267f0866c travis: Use tools/metrics.py to compute size diff of minimal ports.
This is to make the Travis CI size check more robust, by not relying on the
saved firmware from a previous build (which may use a different compiler,
environment, etc) but rather compile both master and the PR and diff them.

This size check now checks both bare-arm and minimal x86-32 builds (before
it just checked minimal Cortex-M build).
2020-04-22 14:04:01 +10:00
stijn 30840ebc99 all: Enable extra conversion warnings where applicable.
Add -Wdouble-promotion and -Wfloat-conversion for most ports to ban out
implicit floating point conversions, and add extra Travis builds using
MICROPY_FLOAT_IMPL_FLOAT to uncover warnings which weren't found
previously.  For the unix port -Wsign-comparison is added as well but only
there since only clang supports this but gcc doesn't.
2020-04-18 22:42:28 +10:00
stijn 4677315a01 travis: Finish jobs early after test failure.
For jobs which run tests multiple times terminate after the first run fails
otherwise the next test run overwrites the previous results, making
--print-failures useless.
2020-04-18 22:35:56 +10:00
stijn 91a6ddc78a travis: Decrease build duration by starting OSX build early.
Looking at the recent build history the time it takes just to complete the
OSX build is already 12 minutes so make it start early, which brings down
the total build time from about 20 minutes to 14 minutes.
2020-04-18 22:35:44 +10:00
Thorsten von Eicken e880c8dfaa travis: Split esp32 ESP-IDF v3 and v4 builds to separate jobs.
To make it easier to see what is happening when there is a failure.  This
commit also fixes the ESP-IDF v4 build to use the correct GCC 8.2.0.
2020-04-13 16:06:58 +10:00
stijn bd5633778f travis: Make OSX build work again by not installing pkgconfig.
Recent builds are failing with the following error:

    Error: pkg-config 0.29.2 is already installed

Assuming this will be the case form now on, we don't have to install
pkgconfig anymore.
2020-04-07 13:59:34 +10:00
Damien George ad2b3185da travis: Build GENERIC_1M board as part of esp8266 job. 2020-04-04 16:37:51 +11:00
David Lechner 581f9135a4 tests/run-tests: Add commands to print and clean *.exp,out files.
This adds a couple of commands to the run-tests script to print the diffs
of failed tests and also to clean up the .exp and .out files after failed
tests.  (And a spelling error is fixed while we are touching nearby code.)

Travis is also updated to use these new commands, including using it for
more builds.
2020-03-30 13:25:58 +11:00
David Lechner 2461349b27 travis: Build full unix coverage build on osx job.
This should help catch more compile errors with the clang compiler.
2020-03-30 12:05:22 +11:00
Damien George b56caaf104 travis: Build NUCLEO_L073RZ instead of B_L072Z_LRWAN1 for stm32 job.
The NUCLEO_L073RZ build is slightly bigger and this MCU has only 192k flash
so this helps to catch flash overflow.
2020-03-28 13:56:16 +11:00
David Lechner 6c77d5c7cd travis: Use grep with --text on qemu-arm output.
If the .out file contains non-text characters, grep won't show the output
unless we ask nicely.
2020-03-28 13:29:54 +11:00
David Lechner 0608fbff29 travis: Use custom PPA to get pre-built uncrustify.
Use PPA so that we don't have to rebuild uncrustify from source, speeding
up the job.  This also requires not running this test on arm64.
2020-03-28 11:40:47 +11:00
Damien George 3667effff1 travis: Exclude some uasyncio tests on OSX. 2020-03-26 01:25:45 +11:00
Damien George 98ab7643a7 travis: Print errors out for OSX job. 2020-03-26 01:21:04 +11:00
Damien George ab00f4c44e qemu-arm: Set default board as mps2-an385 to get more flash for tests.
And use Ubuntu bionic for qemu-arm Travic CI job.
2020-03-26 01:21:04 +11:00
Damien George f552451cba travis: For unix tests use Makefile target instead of explicit commands. 2020-03-11 20:20:18 +11:00
Damien George bd50651567 travis: Run multi_net tests as part of coverage job. 2020-03-10 02:22:34 +11:00
Damien George ecee6f2877 travis: Build stm32 PYBD_SF6 with BTstack as bluetooth stack. 2020-03-10 01:53:42 +11:00
Damien George f6375ac3eb travis: Add CI job to check code formatting.
The CI job will fail if there is any code which does not conform to the
style encoded by tools/codeformat.py.  And it will list any changes
required.

uncrustify is built from source because Ubuntu bionic has uncrustify-0.66.1
which is from 2017/11/22 and is missing many options needed here.
2020-02-28 10:34:17 +11:00
stijn 2d800c77a0 travis: Add OSX build to CI.
Add a standard unix port build in an OSX environment using clang.  Should
help in catching build failures due to platform differences early on.
2020-02-21 14:20:52 +11:00
Damien George baf11f237b unix/Makefile: Remove old variant targets that are no longer needed.
To eliminate confusion about what targets to use when building.
2020-02-16 00:15:57 +11:00
Jim Mussared 3032ae1155 esp32: Enable NimBLE support on all builds (IDF 3.3 and 4.0).
This commit updates the IDFv3 version to v3.3.1, and enables the
"ubluetooth" module by default on IDFv3 builds.
2020-01-15 00:24:43 +11:00
Jim Mussared 977b532c8f unix: Rename unix binaries to micropython-variant (not _variant).
For consistency with mpy-cross, and other unix tools in general.
2020-01-12 10:37:40 +11:00
Jim Mussared 7319d546b7 travis: Update travis to specify which unix variant to build. 2020-01-12 10:37:33 +11:00
Damien George e83ab7374b travis: Add stm32 build in nanbox mode. 2019-12-27 22:54:53 +11:00
Damien George 11b4524b39 travis: Add new job to build and test unix coverage in 32-bit mode. 2019-12-27 12:30:51 +11:00
Damien George 4da763fc49 travis: Build urandom native module in coverage job. 2019-12-13 13:33:45 +11:00
Damien George ac769672fd travis: Add tests for building and importing dynamic native modules. 2019-12-12 20:15:28 +11:00
Damien George 162016ad9c travis: Add job to build and test unix minimal port.
To test that unix minimal port builds, and that test-suite can run with
minimal features enabled.
2019-10-29 22:23:00 +11:00
Michael Neuling 079cc940a6 powerpc: Add initial port to bare metal PowerPC arch.
Runs in microwatt (GHDL and FPGA) and qemu.

Port done initially by Michael Neuling, with help from Anton Blanchard and
Jordan Niethe.
2019-10-22 22:45:33 +11:00
Damien George f562f94e1c travis: Use "make submodules" to init required modules for each port. 2019-10-15 17:14:41 +11:00
Mike Causer 3117fde407 travis: Add esp8266 GENERIC_512K build to CI. 2019-10-10 16:32:25 +11:00
Jim Mussared fa23033fc4 travis: Add BLE submodules to ESP32 IDF4 build. 2019-10-08 14:52:31 +11:00
Damien George deef6f3718 travis: Build unix nanbox with PYTHON=python2.
To test build support with Python 2.7.
2019-10-05 23:11:47 +10:00
Jim Mussared d72dbb822c stm32: Provide port-specific implementation for Nimble on STM32. 2019-10-01 09:51:02 +10:00
Damien George 6647d03e42 travis: Build more stm32 boards to cover all supported MCUs. 2019-09-26 16:43:34 +10:00
Jim Mussared b1505541da travis: Add ESP32 build with IDF v4. 2019-09-17 12:26:35 +10:00
Damien George 0b85b5b8b3 travis: Add new job to test unix port with sys.settrace enabled. 2019-08-30 16:49:13 +10:00
Damien George 8f55a8fab6 travis: Build an stm32 board with threading enabled to test it with CI. 2019-07-26 12:44:47 +10:00
Damien George a67d9155e6 travis: Switch unix stackless build to use clang.
To test a different compiler, other than gcc.
2019-07-17 15:52:27 +10:00
Damien George 14f61a224d travis: Build stm32 mboot for PYBD_SF6 as part of CI. 2019-07-09 11:47:57 +10:00
Damien George 9ca4789130 travis: Add samd port to Travis build. 2019-07-01 17:19:18 +10:00
Damien George 9cebead276 travis: Enable performance benchmark tests on standard unix build. 2019-06-28 16:30:01 +10:00
Damien George e06dcad5d3 travis: Build esp32 firmware as part of Travis CI.
Toolchain installation and build takes about 3 minutes.
2019-06-25 14:55:10 +10:00