2019-11-07 03:04:42 -05:00
|
|
|
language: go
|
|
|
|
go:
|
|
|
|
- 1.13.x
|
|
|
|
git:
|
|
|
|
depth: 1
|
2020-03-09 21:39:19 -05:00
|
|
|
install:
|
2020-03-11 05:22:35 -05:00
|
|
|
- go get github.com/rakyll/statik
|
|
|
|
before_script:
|
|
|
|
- statik -src=models -f
|
|
|
|
before_deploy:
|
2020-03-09 21:39:19 -05:00
|
|
|
- sudo apt install gcc-mingw-w64
|
2020-03-11 05:22:35 -05:00
|
|
|
- apt-get install gcc-arm-linux-gnueabi
|
2020-03-09 21:39:19 -05:00
|
|
|
- chmod +x ./build.sh
|
|
|
|
- ./build.sh -r b
|
2020-03-11 05:22:35 -05:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
file_glob: true
|
|
|
|
file: release/*
|
|
|
|
skip_cleanup: true
|
2020-03-09 21:39:19 -05:00
|
|
|
# script:
|
|
|
|
# - go test -coverprofile=coverage.txt -covermode=atomic ./...
|
|
|
|
# after_success:
|
|
|
|
# - bash <(curl -s https://codecov.io/bash)
|