2017-08-26 22:07:06 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-08-26 22:25:34 -07:00
|
|
|
set -x
|
2017-10-01 08:59:21 -07:00
|
|
|
set -e
|
2017-08-26 22:25:34 -07:00
|
|
|
|
2017-08-26 22:07:06 -07:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2017-10-01 13:10:05 -07:00
|
|
|
cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/llvm@5/ -DCMAKE_INSTALL_PREFIX=$(pwd)
|
2017-08-26 22:07:06 -07:00
|
|
|
make VERBOSE=1
|
|
|
|
make install
|
2017-09-17 14:47:12 -07:00
|
|
|
|
2017-10-01 08:59:21 -07:00
|
|
|
# TODO: we run the tests separately because when run all together there is some
|
|
|
|
# mysterious issue where after N child process spawns it crashes. I've been
|
|
|
|
# unable to reproduce the issue on my macbook - it only happens on Travis.
|
|
|
|
# ./zig build --build-file ../build.zig test
|
|
|
|
|
2017-09-17 14:47:12 -07:00
|
|
|
./zig build --build-file ../build.zig test-behavior --verbose
|
|
|
|
./zig build --build-file ../build.zig test-std --verbose
|
|
|
|
./zig build --build-file ../build.zig test-compiler-rt --verbose
|
|
|
|
./zig build --build-file ../build.zig test-compare-output --verbose
|
|
|
|
./zig build --build-file ../build.zig test-build-examples --verbose
|
|
|
|
./zig build --build-file ../build.zig test-compile-errors --verbose
|
|
|
|
./zig build --build-file ../build.zig test-asm-link --verbose
|
|
|
|
./zig build --build-file ../build.zig test-debug-safety --verbose
|
2017-11-24 11:56:05 -08:00
|
|
|
./zig build --build-file ../build.zig test-translate-c --verbose
|