Cloudreve/.travis.yml
2020-03-11 19:04:55 +08:00

25 lines
574 B
YAML

language: go
go:
- 1.13.x
git:
depth: 1
install:
- go get github.com/rakyll/statik
- sudo apt-get -y install gcc-mingw-w64-x86-64
- sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-armhf libc6-dev-armhf
before_script:
- statik -src=models -f
- chmod +x ./build.sh
script:
- ./build.sh -r b
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: release/*
draft: true
skip_cleanup: true
# script:
# - go test -coverprofile=coverage.txt -covermode=atomic ./...
# after_success:
# - bash <(curl -s https://codecov.io/bash)