#!/bin/ash

mkdir -p gen && \
    version_next=$(cat version-next) && \
    echo "package gen" > gen/version.go && \
    echo "var Version string = \"${version_next}\"" >> gen/version.go
goa gen git.zooxlabs.com/zooxco/driving/sim/marvel/jobz/design
go build -v ./cmd/jobz -pkgdir ./cmd
go build -v ./cmd/jobz-cli -pkgdir ./cmd
go test -v -cover ./...
