authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-04-03 10:17:57-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-04-03 11:22:18-04:00
logaadc14fd78c4137ffcc02e3ba67c0c60100b4d69
treecb547daa45a5ed26fc9d0ded1492309a7cfb7e6c
parent4eb68987d81cc4a1a92ebb4b5e83be73669801ad

upload static linux artifacts on successful travis build


2 files changed, 11 insertions(+), 19 deletions(-)

.travis.yml+8
......@@ -1,3 +1,11 @@
1sudo: required
2services:
3 - docker
4addons:
5 artifacts:
6 working_dir: artifacts
7 target_paths:
8 - /builds
19os:
210 - linux
311 - osx
ci/travis_linux_script+3-19
......@@ -9,24 +9,8 @@ echo $PATH
99mkdir build
1010cd build
1111cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)
12make VERBOSE=1
13make install
12make -j2 install
1413./zig build --build-file ../build.zig test
1514
16./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc
17wine zig-cache/test.exe
18
19./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-fast
20wine zig-cache/test.exe
21
22./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-safe
23wine zig-cache/test.exe
24
25./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc
26wine64 zig-cache/test.exe
27
28#./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc --release-fast
29#wine64 test.exe
30#
31#./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc --release-safe
32#wine64 test.exe
15mkdir $TRAVIS_BUILD_DIR/artifacts
16docker run -it --mount type=bind,source="$TRAVIS_BUILD_DIR/artifacts",target=/z ziglang/static-base:llvm6-1 -j2 $TRAVIS_COMMIT