zig/ci/travis_linux_script

19 lines
367 B
Plaintext
Raw Normal View History

2017-08-26 22:07:06 -07:00
#!/bin/sh
2017-08-26 22:25:34 -07:00
set -x
set -e
2017-08-26 22:25:34 -07: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
cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)
make -j2 install
./zig build --build-file ../build.zig test
cd $TRAVIS_BUILD_DIR
rm .gitignore
git clean -fd
docker run -it --mount type=bind,source="$TRAVIS_BUILD_DIR",target=/z ziglang/static-base:llvm6-1 -j2 $TRAVIS_COMMIT