Add CI build files

This commit is contained in:
Trevor Slocum 2019-09-16 16:48:02 -07:00
parent 0bf21e183d
commit 5b9e2d2129
2 changed files with 54 additions and 0 deletions

27
.builds/amd64_freebsd.yml Normal file
View file

@ -0,0 +1,27 @@
arch: amd64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'netris'
CGO_ENABLED: '0'
GO111MODULE: 'on'
image: freebsd/latest
packages:
- go
sources:
- https://git.sr.ht/~tslocum/netris
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 ./...
- build-client: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/netris
go build
- build-server: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/netris-server
go build

View file

@ -0,0 +1,27 @@
arch: x86_64
environment:
PROJECT_DIR: '~/go/src/git.sr.ht/~tslocum'
PROJECT_NAME: 'netris'
CGO_ENABLED: '0'
GO111MODULE: 'on'
image: alpine/edge
packages:
- go
sources:
- https://git.sr.ht/~tslocum/netris
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 ./...
- build-client: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/netris
go build
- build-server: |
cd $PROJECT_DIR/$PROJECT_NAME/cmd/netris-server
go build