Commit Graph

6 Commits

Author SHA1 Message Date
Will Speak
2d578e0051 feat: add multi-arch CI matrix with nan-tagging toggle and 32-bit test suite
Add Travis CI configuration to build and test Wren on both Linux and macOS, for both 32-bit and 64-bit architectures, with and without WREN_NAN_TAGGING defined. Introduce `ci_32` and `ci_64` make targets that build debug/release and C/C++ variants, then run the test suite against each binary using a suffix parameter. Update `util/test.py` with argparse to accept `--suffix` and `suite` arguments, increase test timeout from 2 to 5 seconds, and fix handle leak in `test/api/slots.c` by moving `wrenReleaseHandle` after the conditional block. Replace `fpclassify`/`signbit` checks for infinity/nan in `wrenNumToString` to avoid GCC overflow warnings on 32-bit, double-cast `double` to `uint32_t` in `num_bitwiseNot` to prevent undefined behavior, and relax floating-point comparisons in `test/core/number/sin.wren` and `cos.wren` to use absolute tolerance. Comment out hex literals larger than `0x1000000` in `example/syntax.wren` since they exceed 32-bit range, and bump libuv from v1.8.0 to v1.10.0 for 32-bit build fixes.
2016-10-09 08:18:27 +00:00
Bob Nystrom
4de5d75fc6 fix: install g++-multilib package for 32-bit C++ standard library support on Travis CI 2015-08-29 03:25:26 +00:00
Bob Nystrom
864210978b chore: switch travis to container-based infra and move apt deps to addons block
Replace manual apt-get install steps with declarative addons.apt.packages for gcc-multilib, and set sudo: false to enable container-based builds for faster CI execution.
2015-07-10 17:35:25 +00:00
Bob Nystrom
6396151732 fix: install gcc-multilib for 32-bit compilation support on 64-bit Travis CI VMs
Add before_install step to .travis.yml that updates apt packages and installs
gcc-multilib, enabling 32-bit C library headers and runtime for cross-compilation
in the CI environment.
2015-02-25 04:26:24 +00:00
Bob Nystrom
77148c2db6 chore: switch travis build script from make to make all for full configs 2015-02-25 03:32:46 +00:00
Bob Nystrom
6d1801603c feat: add Travis CI config and fail-exit in test script
Add .travis.yml with gcc and clang compilers running make && make test.
Modify script/test.py to call sys.exit(1) when any tests fail, ensuring
CI build correctly reports failure status.
2015-01-02 16:13:51 +00:00