Skip to content

Commit 1a7864f

Browse files
committed
Test with Emscripten
1 parent 747b587 commit 1a7864f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

travis-ci

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ if [ "$TRAVIS_OS_NAME" = linux ]; then
7373
folded ... concurrently LIBSTD_INSTALL_PID locked bash -c 'sudo -E apt-add-repository -y ppa:ubuntu-toolchain-r/test && sudo -E apt-get -yq update && sudo -E apt-get -yq --no-install-suggests --no-install-recommends install libstdc++-8-dev'
7474
folded ... concurrently GCC_INSTALL_PID locked sudo -E apt-get -yq --no-install-suggests --no-install-recommends install g++-8
7575
elif [ "$TRAVIS_OS_NAME" = osx ]; then
76+
[ "$EMSCRIPTEN" != 1 ] || HOMEBREW_NO_INSTALL_CLEANUP=1 folded ... concurrently EMSCRIPTEN_INSTALL_PID locked brew install emscripten
7677
[ "$CODECOV" != 1 ] || HOMEBREW_NO_INSTALL_CLEANUP=1 folded ... concurrently LCOV_INSTALL_PID locked brew install lcov
7778
[ "$FORMAT_CHECK" = 0 ] || HOMEBREW_NO_INSTALL_CLEANUP=1 folded ... concurrently FORMAT_INSTALL_PID locked brew install prettier clang-format
7879
elif [ "$TRAVIS_OS_NAME" = windows ]; then
@@ -128,6 +129,15 @@ run-tests() {
128129
# shellcheck disable=2009,2046
129130
kill -9 $(ps | grep -o "^ *[0-9]\\+ *$$ " | sed -e 's#^ *##g' -e 's# .*##g') 2>/dev/null || true
130131
fi
132+
133+
if [ "$TRAVIS_OS_NAME" = osx ] && [ "$EMSCRIPTEN" = 1 ]; then
134+
folded-finish EMSCRIPTEN_INSTALL_PID
135+
local EMSCRIPTEN_TOOLCHAIN_FILE
136+
EMSCRIPTEN_TOOLCHAIN_FILE="$(find /usr/local -name Emscripten.cmake)"
137+
for CONFIG in Debug Release; do
138+
CMAKE_BUILD_TYPE=$CONFIG CMAKE_TOOLCHAIN_FILE="$EMSCRIPTEN_TOOLCHAIN_FILE" folded "Emscripten $CONFIG" cppsm test
139+
done
140+
fi
131141
}
132142

133143
run-tests

0 commit comments

Comments
 (0)