Feat: travis ci deploy
This commit is contained in:
parent
213c92b522
commit
2afab1022f
1 changed files with 11 additions and 1 deletions
12
.travis.yml
12
.travis.yml
|
@ -4,10 +4,20 @@ go:
|
||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 1
|
||||||
install:
|
install:
|
||||||
|
- go get github.com/rakyll/statik
|
||||||
|
before_script:
|
||||||
|
- statik -src=models -f
|
||||||
|
before_deploy:
|
||||||
- sudo apt install gcc-mingw-w64
|
- sudo apt install gcc-mingw-w64
|
||||||
|
- apt-get install gcc-arm-linux-gnueabi
|
||||||
- chmod +x ./build.sh
|
- chmod +x ./build.sh
|
||||||
script:
|
|
||||||
- ./build.sh -r b
|
- ./build.sh -r b
|
||||||
|
deploy:
|
||||||
|
provider: releases
|
||||||
|
api_key: $GITHUB_TOKEN
|
||||||
|
file_glob: true
|
||||||
|
file: release/*
|
||||||
|
skip_cleanup: true
|
||||||
# script:
|
# script:
|
||||||
# - go test -coverprofile=coverage.txt -covermode=atomic ./...
|
# - go test -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
# after_success:
|
# after_success:
|
||||||
|
|
Loading…
Add table
Reference in a new issue