Files
wren/.travis.sh
T
underscorediscovery 7232ca4310 fix: rename nan-tagging build configs and add release variant with CI script
Replace the broken `64bit-no-nan-tagging_64bit` and `64bit-no-nan-tagging_32bit` configurations with properly named `release_64bit-no-nan-tagging` and `debug_64bit-no-nan-tagging` across all gmake Makefiles and wren_cli.make files. Add the missing `release_64bit-no-nan-tagging` build target definitions for linux, mac, and bsd platforms. Introduce `.travis.sh` script that runs both nan-tagged and non-nan-tagged debug and release builds, and simplify `.travis.yml` to use the new script with per-os env variables instead of matrix options.
2020-05-28 16:57:29 +00:00

31 lines
723 B
Bash

#!/bin/bash
set -e
# This build script only builds mac or linux right now, for CI.
WREN_WD="projects/gmake"
if [ -n "$WREN_TARGET_MAC" ]
then
WREN_WD="projects/gmake.mac"
fi
WREN_PY="python3"
if [ -n "$WREN_PY_BINARY" ]
then
WREN_PY="$WREN_PY_BINARY"
fi
echo "using working directory '$WREN_WD' ..."
echo "using python binary '$WREN_PY' ..."
cd "$WREN_WD" && make config=debug_64bit-no-nan-tagging
cd ../../ && $WREN_PY ./util/test.py --suffix=_d
cd "$WREN_WD" && make config=debug_64bit
cd ../../ && $WREN_PY ./util/test.py --suffix=_d
cd "$WREN_WD" && make config=release_64bit-no-nan-tagging
cd ../../ && $WREN_PY ./util/test.py
cd "$WREN_WD" && make config=release_64bit
cd ../../ && $WREN_PY ./util/test.py