2018-12-28 17:36:43 +00:00
|
|
|
image: freebsd/latest
|
2018-12-20 00:34:51 +00:00
|
|
|
packages:
|
|
|
|
- cmake
|
2018-12-20 20:01:49 +00:00
|
|
|
- ninja
|
2018-12-20 00:34:51 +00:00
|
|
|
- llvm70
|
|
|
|
sources:
|
|
|
|
- https://github.com/ziglang/zig.git
|
|
|
|
tasks:
|
|
|
|
- build: |
|
|
|
|
cd zig && mkdir build && cd build
|
2018-12-20 20:01:49 +00:00
|
|
|
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release
|
|
|
|
ninja install
|
2018-12-20 00:34:51 +00:00
|
|
|
- test: |
|
2018-12-20 18:05:34 +00:00
|
|
|
cd zig/build
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig
|
|
|
|
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig --library c
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig --library c
|
|
|
|
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig --release-fast
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig --release-fast
|
|
|
|
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig --release-fast --library c
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig --release-fast --library c
|
|
|
|
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig --release-small --library c
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig --release-small --library c
|
|
|
|
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig --release-small
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig --release-small
|
|
|
|
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig --release-safe
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig --release-safe
|
|
|
|
|
2019-01-30 07:53:50 +00:00
|
|
|
bin/zig test ../test/stage1/behavior.zig --release-safe --library c
|
2018-12-28 13:38:58 +00:00
|
|
|
bin/zig test ../std/special/compiler_rt/index.zig --release-safe --library c
|
2018-12-20 18:05:34 +00:00
|
|
|
# TODO enable all tests
|
|
|
|
#bin/zig build --build-file ../build.zig test
|
|
|
|
# TODO integrate with the download page updater and make a
|
|
|
|
# static build available to download for FreeBSD.
|
|
|
|
# This will require setting up a cache of LLVM/Clang built
|
|
|
|
# statically.
|