Commit graph

73 commits

Author SHA1 Message Date
William S Fulton
282fdb1715 MzScheme 'passes' with c++11 testing now
Test c++17 on Github Actions to try keep it passing when
configure detects g++ can test c++17.
2022-03-27 15:06:47 +01:00
William S Fulton
f44153069b Ocaml test-suite 'passes' with c++11 testing now
Test c++17 on Github Actions to try keep it passing when
configure detects g++ can test c++17.
2022-03-27 13:50:30 +01:00
Olly Betts
c7af8eabb3 Default to running tests with Python 3
Specify PY2=1 to use Python 2.

See #1779
Closes #2235
2022-03-17 18:55:10 +13:00
Olly Betts
f5313e63af [ci] Adjust how CPPFLAGS is set
Set it so it should be visible where the CI log shows the environment,
as `make` is run with `-s` so the compile command lines are unhelpfully
not shown.
2022-03-15 18:17:18 +13:00
Olly Betts
9efcc785ae Re-enable symbol poisoning in a CI job
It seems too brittle to enable by default as we'd have to avoid
including any system headers after doh.h, which is hard to enforce,
but just having it enabled for one CI job should avoid uses of the
poisoned symbols from being accidentally introduced.

See #2223
2022-03-15 11:14:23 +13:00
William S Fulton
622fa2818b GHA: normalize amount of Scilab testing
We limit target language to one version for c++11 and c++14 testing
2022-02-26 21:09:30 +00:00
Clément DAVID
ce6c0c47f6 Add Scilab 5.5.2 6.0.2 and 6.1.0 from upstream
This commit log Scilab version at ./configure to ease maintenance. It
uses Scilab include next to the bin directory which will work for both
system-wide install and binaries from scilab.org.

SCILAB_VERSION is define as an automake variable for easier
failure investigation.

Note: the Ubuntu Scilab version is used when available, in the current
CI config there is:
 * Scilab 5.5 from scilab.org
 * Scilab 6.0 from Ubuntu 18.04
 * Scilab 6.1 from Ubuntu 20.04
2022-02-21 10:01:27 +01:00
William S Fulton
c8645aab9e Ensure GHA fails when testflags.py fails 2022-01-18 21:03:21 +00:00
William S Fulton
b98c78441f GHA debug via ssh info 2022-01-10 20:13:16 +00:00
William S Fulton
3947df87a2 GHA: Test Octave 6.4 2021-12-05 22:24:51 +00:00
William S Fulton
8432d3f89b GHA: Test currently supported php versions 7.0-8.1 2021-12-04 09:35:51 +00:00
Olly Betts
bebb3d4c21 [ci] Remove CI build for unsupported v8 3.14
We only support v8 5.0 and later now.

libv8-dev is no longer packaged in newer Ubuntu releases, so it
seems there isn't an easy way to update this to test a supported
v8 version, but really v8 via node is the configuration people will
actually use anyway.
2021-12-02 14:31:28 +13:00
William S Fulton
26d693105a GHA: Test node versions 6,8,10
Test the documented minimum version 6 and some later versions
as was done on Travis.

Using ubuntu-18.04 as I couldn't get these versions to work on newer
ubuntu-20.04 (some horrid c++ compilation errors)
2021-12-01 18:21:07 +00:00
William S Fulton
0304bdb82b GHA: Add testing of node 17
Also remove duplicate test of node 14
2021-11-27 13:56:49 +00:00
Vadim Zeitlin
6a56426f8f Use JSC version available in Ubuntu 20.04 in the CI builds
Use the newer OS and JavaScript Core library versions for the CI build,
we don't have to remain with the old version here, as the newer one
works too.
2021-11-27 13:51:34 +00:00
William S Fulton
3354345255 GHA: switch ocaml testing to ubuntu-18.04 2021-11-17 22:27:00 +00:00
William S Fulton
07f18bef36 GHA: Test experimental languages - mzscheme and ocaml
These are allowed to fail and they won't fail the
overall build (like they did on Travis).
Implemented via the continue-on-error flag that Github Actions provides.
2021-11-17 21:23:59 +00:00
William S Fulton
0ec35cf24e GHA: Test Scilab 6.0 on ubuntu-18.04
6.1 on ubuntu-20.04 not yet working
2021-11-16 19:48:22 +00:00
William S Fulton
2582e3fc75 GHA: Add in Scilab testing 2021-11-15 23:03:02 +00:00
William S Fulton
47d39ed3d8 GHA: Add Guile to c++11,c++14,c++17 testing 2021-11-15 08:17:32 +00:00
William S Fulton
c83466af53 GHA: Add Lua to c++11,c++14,c++17 testing 2021-11-12 19:49:45 +00:00
William S Fulton
7da8ce722b Ruby 3.0 requires std::nullptr_t 2021-11-12 19:00:20 +00:00
William S Fulton
aedcad5384 Run GHA on all branches 2021-11-12 19:00:20 +00:00
William S Fulton
c1d8852609 GHA: Turn on full c++11, c++14, c++17 testing
Like we had on Travis

Note that Octave C++11 is already tested
2021-11-12 19:00:20 +00:00
William S Fulton
d13c63dc8d GHA: test go 1.17 (latest) version 2021-11-11 20:38:50 +00:00
William S Fulton
e74b9830bb GHA: C++11 testing and compiler name
Show compiler name (directly from inputs rather than from 'desc'.
Fix testing of C++11, C++14.
Allow for CSTD override to override with -std=gnu11 for languages
whose headers are not -std=c11 compatible.
Show c/c++ std being tested from github yaml file in the name.
2021-11-11 20:33:26 +00:00
William S Fulton
b69b5888a8 GHA: Fix testing of php versions
The ubuntu-20.04 machine has php 7.4 and 8.0 installed.
configure.ac always looks for newer versions over older versions of php.
To prevent always testing 8.0, remove all versions and just install the
required version.
2021-11-11 20:17:54 +00:00
William S Fulton
95c76a6fa6 Simpler Test code for handling SWIGLANG 2021-11-11 20:17:50 +00:00
William S Fulton
8b5cd5f906 GHA: cleaner output 2021-10-22 15:44:36 +01:00
William S Fulton
cbbeb4298a GHA: Fix CSTD and CPPSTD usage 2021-10-22 15:44:27 +01:00
William S Fulton
cf8268d19e GHA: Remove go-1.3 testing
Results in error message:
/usr/bin/ld: -r and -pie may not be used together
Same problem on Ubuntu 18.04. Same with versions go-1.2 to go-1.5.
2021-10-22 15:03:49 +01:00
William S Fulton
04a6ad3bb5 Add SWIG_FEATURES into GHA name 2021-10-22 14:49:01 +01:00
William S Fulton
c280d63a4d GHA: Add python 3.10 testing 2021-10-20 21:05:20 +01:00
William S Fulton
fc31b9ab04 Add gcc11 testing 2021-10-15 08:15:14 +01:00
William S Fulton
206105bc3f GHA: Correctly unset SWIGJOBS for broken parallel language checks 2021-10-15 08:14:28 +01:00
William S Fulton
4df45013d5 Fix to find scripts in Tools 2021-10-15 08:14:28 +01:00
William S Fulton
d0b6cfeca4 Factor out common environment setup GHA steps 2021-10-15 08:14:28 +01:00
William S Fulton
aaf19fbf93 GHA: Fix regressions
The environment variables are not kept between runs, arg.
Temp hack to try and get export env working for Configure and Test steps.
2021-10-15 08:14:28 +01:00
William S Fulton
61983e04b0 Try save WITHLANG 2021-10-15 08:14:28 +01:00
William S Fulton
d7c2cbec38 GHA: clean up Configure step
Setup Javascript before running configure - may fix broken Javascript testing.
Configure step just configures now.
2021-10-15 08:14:28 +01:00
William S Fulton
7e97269452 Fix Install step 2021-10-15 08:14:28 +01:00
William S Fulton
b17416c187 GHA: remove useless diagnostics
This echo is out of sync with the script for some reason and
is rather pointless subsequent to the breaking up of the steps
2021-10-15 08:14:28 +01:00
William S Fulton
af68e7f618 GHA: Restore silent flag to building SWIG
There is too much cruft to wade through to find compiler warnings.
I check these once in a while for all compilers.
We could alternatively use -Werr, but at the risk of more broken builds.
2021-10-15 08:14:28 +01:00
William S Fulton
b1fe12182b GHA workflow break up
It's useful to see the configure step by itself, so split it out
from the installation of prerequisites.
The make install is verbose, put it in it's own step
Move checking of the errors test-suite and ccache checks from
the Build to Test step.
2021-10-15 08:14:28 +01:00
Vadim Zeitlin
2b540ae2f5 Merge branch 'appveyor-ci-improvements'
Cancel builds of non-latest PR version on AppVeyor and other minor
improvements.

See #2085.
2021-10-14 00:26:54 +02:00
Vadim Zeitlin
8a0ec051db Don't run non-node JS tests in parallel in the CI builds
This seems to be broken and sporadically results in "Text file busy"
errors when the tests are run actually in parallel, as is the case in
GitHub CI environment.
2021-10-03 17:19:29 +02:00
Vadim Zeitlin
2c86dd193b Ignore changes to appveyor.yml in GitHub Actions CI workflow
Don't bother rerunning GitHub CI builds when only AppVeyor configuration
changes.
2021-10-03 16:13:12 +02:00
Vadim Zeitlin
3b7e46dd19 Try using one less make job to see its effect on total time
Check if using -j2, rather than -j3, may help with speeding up Octave
unit tests run which takes ~25 minutes currently.
2021-10-01 04:28:11 +02:00
Vadim Zeitlin
51cb07711f Add most of Linux builds from Travis CI
Don't add the builds known/allowed to fail and don't add all the
variations of Python builds, there are just too many of those, but do
add mostly all the rest, with the exceptions below:

Builds using JavaScript backend with node <= 10 had to be disabled as
well, as they just seem to be broken and there is no real motivation in
supporting these ancient versions.

Builds using D can't be run currently due to incompatibility between the
ancient dmd version being used and the earliest support Ubuntu version
(18.04) on GitHub Actions and not supporting newer versions in SWIG.

Builds using Scilab had to be disabled as running the test suite
reliably hangs. This would need to be debugged by somebody motivated in
doing it.

Note that some builds need to be run under Ubuntu 18.04 (Bionic) and not
the default 20.04 (Focal) as they use old dependencies that don't exist
in Focal any longer. In the future we ought to switch to using newer
versions of these dependencies.
2021-10-01 03:20:13 +02:00
Vadim Zeitlin
576e8317ff Don't set CONFIGOPTS to empty string initially
This results in passing empty argument to configure which, in turn,
triggers "WARNING: you should use --build, --host, --target" from it as
this argument is apparently misinterpreted as the host name.
2021-09-30 20:35:00 +02:00