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
services:
    - docker

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

    # Make sure zig runs
    - zig --help

script:
    # 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