2017-08-26 22:07:06 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-08-26 22:25:34 -07:00
|
|
|
set -x
|
2017-10-01 08:50:53 -07:00
|
|
|
set -e
|
2017-08-26 22:25:34 -07:00
|
|
|
|
2018-03-08 08:08:50 -08:00
|
|
|
export CC=clang-6.0
|
|
|
|
export CXX=clang++-6.0
|
2017-08-26 22:07:06 -07:00
|
|
|
echo $PATH
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2018-03-30 14:24:56 -07:00
|
|
|
cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)
|
2018-04-03 07:17:57 -07:00
|
|
|
make -j2 install
|
2017-09-05 19:55:56 -07:00
|
|
|
./zig build --build-file ../build.zig test
|
2017-10-01 08:11:38 -07:00
|
|
|
|
2018-04-03 09:04:06 -07:00
|
|
|
cd $TRAVIS_BUILD_DIR
|
2018-04-03 11:23:56 -07:00
|
|
|
rm .gitignore
|
2018-04-03 09:04:06 -07:00
|
|
|
git clean -fd
|
|
|
|
docker run -it --mount type=bind,source="$TRAVIS_BUILD_DIR",target=/z ziglang/static-base:llvm6-1 -j2 $TRAVIS_COMMIT
|