Files
ci-emsdk/docker/test_dockerimage.sh
Kleis Auke Wolthuizen 645d276b5c Docker improvements (#571)
- Copy the current checkout to the Dockerfile.
- Add .dockerignore to exclude files while copying.
- Test tip-of-tree build within CI.
- Run the test suite outside the Docker image.
- Perform extra sanity tests.
- Switch to make commands for CircleCI.
- Improve Docker README.
2020-09-02 10:50:52 -07:00

31 lines
534 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
if [ $EUID -eq 0 ]; then
sudo -u nobody `which emcc` --version
fi
which llvm-ar
which emsdk
node --version
npm --version
python3 --version
pip3 --version
em++ --version
emcc --version
java -version
cmake --version
exit_code=0
# test emcc compilation
echo 'int main() { return 0; }' | emcc -o /tmp/main.js -xc -
node /tmp/main.js || exit_code=$?
if [ $exit_code -ne 0 ]; then
echo "Node exited with non-zero exit code: $exit_code"
exit $exit_code
fi
# test embuilder
embuilder build zlib --force