marky

Lightweight bookmarking + plaintext archive
Log | Files | Refs | README | LICENSE

.build.yml (423B)


      1 image: alpine/latest
      2 packages:
      3   - go
      4   - make
      5   - git
      6 tasks:
      7   - setup: |
      8       echo 'cd marky' >> ~/.buildenv
      9   - fmt: |
     10       # Fail if any files are not formatted with gofmt -s
     11       UNFORMATTED=$(gofmt -s -l .)
     12       if [ -n "$UNFORMATTED" ]; then
     13         echo "The following files are not gofmt'd:" >&2
     14         echo "$UNFORMATTED" >&2
     15         exit 1
     16       fi
     17   - test: |
     18       make test
     19   - build: |
     20       make build