Commit Graph

126 Commits

Author SHA1 Message Date
Damien George
5c503de521 travis: Install setuptools for black code formatting.
Signed-off-by: Damien George <damien@micropython.org>
2020-09-18 15:13:31 +10:00
Maureen Helm
17689a71f6 travis: Add zephyr build to CI.
Adds a job to build the zephyr port in CI using the same docker container
that the zephyr project uses for its own CI.

Always make clean zephyr builds to ensure we don't just rebuild C code, but
we also rebuild Kconfig and dts.  This is required when switching between
boards, which have different Kconfigs and device trees.

Uses the tagged zephyr 2.3.0 release.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2020-08-21 11:37:10 +10:00
Glenn Ruben Bakke
342800c9a2 travis: Change nrf pca10056 board to build with s140 SoftDevice.
It might compile fine with S132 as SoftDevice for nRF52840.
However, there might be different hardware on the SoC which in
turn could make it fail.

SoftDevice S140 is correct BLE stack for nRF52840 SoC and would
provide a more accurate test build.
2020-07-17 13:07:32 +02:00
Glenn Ruben Bakke
d9e8edc8bc travis: Add pca10090 build to nrf job. 2020-07-16 11:51:52 +02:00
Glenn Ruben Bakke
411e1157e7 travis: Install newer toolchain for nrf job.
Update toolchain to GNU Arm Embedded Toolchain.
2020-07-16 11:51:52 +02:00
Damien George
6475cdb7d0 travis: Build mboot for PYBV10 with LFS2 enabled in stm32 job.
Signed-off-by: Damien George <damien@micropython.org>
2020-06-26 21:29:32 +10:00
Damien George
13ad1a4f06 travis: In stm32 job, build mboot for NUCLEO_WB55.
Signed-off-by: Damien George <damien@micropython.org>
2020-06-22 14:18:15 +10:00
Damien George
ac15be9365 travis: Build qemu-arm with MP_ENDIANNESS_BIG=1 to test bigendian build.
Eventually it would be good to run the full test suite on a big-endian
system, but for now this will help to catch build errors with the
big-endian configuration.

Signed-off-by: Damien George <damien@micropython.org>
2020-06-22 13:42:24 +10:00
Damien George
cba3e25cb3 travis: Change nrf pca10056 board to build with soft-device enabled.
To test building with SD which enables a lot of additional code.

Signed-off-by: Damien George <damien@micropython.org>
2020-06-17 11:39:52 +10:00
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