Skip to content

Commit

Permalink
upload static linux artifacts on successful travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Apr 3, 2018
1 parent 4eb6898 commit aadc14f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
@@ -1,3 +1,11 @@
sudo: required
services:
- docker
addons:
artifacts:
working_dir: artifacts
target_paths:
- /builds
os:
- linux
- osx
Expand Down
22 changes: 3 additions & 19 deletions ci/travis_linux_script
Expand Up @@ -9,24 +9,8 @@ echo $PATH
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)
make VERBOSE=1
make install
make -j2 install
./zig build --build-file ../build.zig test

./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc
wine zig-cache/test.exe

./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-fast
wine zig-cache/test.exe

./zig test ../test/behavior.zig --target-os windows --target-arch i386 --target-environ msvc --release-safe
wine zig-cache/test.exe

./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc
wine64 zig-cache/test.exe

#./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc --release-fast
#wine64 test.exe
#
#./zig test ../test/behavior.zig --target-os windows --target-arch x86_64 --target-environ msvc --release-safe
#wine64 test.exe
mkdir $TRAVIS_BUILD_DIR/artifacts
docker run -it --mount type=bind,source="$TRAVIS_BUILD_DIR/artifacts",target=/z ziglang/static-base:llvm6-1 -j2 $TRAVIS_COMMIT

0 comments on commit aadc14f

Please sign in to comment.