Modify: travis CI build and test

This commit is contained in:
HFO4
2020-03-12 08:46:14 +08:00
parent 210af8f9e1
commit 83b292c9ba
4 changed files with 18 additions and 123 deletions

View File

@@ -5,12 +5,16 @@ 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-dev-armhf-cross
before_script:
- statik -src=models -f
- chmod +x ./build.sh
script:
- go test -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- sudo apt-get -y install gcc-mingw-w64-x86-64
- sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
- chmod +x ./build.sh
- ./build.sh -r b
deploy:
provider: releases
@@ -19,6 +23,8 @@ deploy:
file: release/*
draft: true
skip_cleanup: true
on:
tags: true
# script:
# - go test -coverprofile=coverage.txt -covermode=atomic ./...
# after_success: