Testing a Zig project with Travis-CI

April 01, 2020

It's really easy to test a Zig project with travis-ci.

Here's an example ci script

language: cpp
dist: bionic
    - docker

    # Install zig
    - sudo snap install zig --classic --edge

    # Make sure zig runs
    - zig --help

    # Run tests
    - zig test src/datetime.zig

Just snap install zig and you're ready to go!

I've been testing out ziglang over the past few moent