Browse Source

Add CI build definitions

master
Trevor Slocum 3 years ago
parent
commit
ae0aed2905
  1. 21
      .builds/amd64_freebsd.yml
  2. 21
      .builds/amd64_linux_alpine.yml

21
.builds/amd64_freebsd.yml

@ -0,0 +1,21 @@
arch: amd64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'desktop'
CGO_ENABLED: '0'
GO111MODULE: 'on'
image: freebsd/latest
packages:
- go
sources:
- https://git.sr.ht/~tslocum/desktop
tasks:
- setup: |
mkdir -p $PROJECT_DIR
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
- deps: |
cd $PROJECT_DIR/$PROJECT_NAME
go mod download
- test: |
cd $PROJECT_DIR/$PROJECT_NAME
go test ./...

21
.builds/amd64_linux_alpine.yml

@ -0,0 +1,21 @@
arch: x86_64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'desktop'
CGO_ENABLED: '0'
GO111MODULE: 'on'
image: alpine/edge
packages:
- go
sources:
- https://git.sr.ht/~tslocum/desktop
tasks:
- setup: |
mkdir -p $PROJECT_DIR
mv $PROJECT_NAME $PROJECT_DIR/$PROJECT_NAME
- deps: |
cd $PROJECT_DIR/$PROJECT_NAME
go mod download
- test: |
cd $PROJECT_DIR/$PROJECT_NAME
go test ./...
Loading…
Cancel
Save