mbedtls
mbedtls copied to clipboard
Run tests on non-x86 platforms on Travis
The Travis CI service now supports Linux on some non-x86 architectures (arm64, ppc64le, s390x). I think we should make use of it and run at least make && make test, perhaps even a few all.sh components.
This is an alpha feature, but it's pretty simple to use so we could add it, and remove it if it breaks.
To keep the load roughly constant, and to keep the number of jobs below 5 (because the free service only allows 5 concurrent jobs and it's nicer if all the jobs of a build can run in parallel), we should remove something. I think that the depends tests have limited value on Travis, so we could remove the job “check compilation guards” .
Btw the arm64 offering on Travis include processors with the crypto extensions, which would be nice to have if we ever get around to reviewing and merging support for those extensions. https://blog.travis-ci.com/2020-09-11-arm-on-aws https://github.com/aws/aws-graviton-getting-started
We did not proceed with this because we were running Travis only on public branches, not on restricted branches, and we didn't want to have a CI that we couldn't run on restricted branches: it meant that a security fix could cause the CI to fail after we publish it.
But now, we're using a paid Travis service and we do run it on restricted branches, so this objection no longer stands.
At this time, per the Travis documentation, arm64 Graviton2 is available for private builds, but s390 is only available for open-source builds.
Arm64 host builds have been added