Add CI build files
This commit is contained in:
parent
0bf21e183d
commit
5b9e2d2129
2 changed files with 54 additions and 0 deletions
27
.builds/amd64_freebsd.yml
Normal file
27
.builds/amd64_freebsd.yml
Normal 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
|
27
.builds/amd64_linux_alpine.yml
Normal file
27
.builds/amd64_linux_alpine.yml
Normal 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
|
Loading…
Reference in a new issue