Cloudreve/.travis.yml

30 lines
702 B
YAML
Raw Normal View History

2019-11-07 03:04:42 -05:00
language: go
go:
2022-03-02 06:29:18 -05:00
- 1.17.x
2020-06-01 07:27:06 -05:00
node_js: "12.16.3"
2019-11-07 03:04:42 -05:00
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
2020-03-11 05:25:31 -05:00
script:
2020-03-11 19:46:14 -05:00
- go test -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- sudo apt-get update
2020-03-11 19:46:14 -05:00
- sudo apt-get -y install gcc-mingw-w64-x86-64
- sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
2020-04-11 23:00:01 -05:00
- sudo apt-get -y install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
2020-03-11 19:46:14 -05:00
- chmod +x ./build.sh
2020-03-11 05:25:31 -05:00
- ./build.sh -r b
2020-03-11 05:22:35 -05:00
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: release/*
2020-03-11 05:22:48 -05:00
draft: true
2020-03-11 06:02:38 -05:00
skip_cleanup: true
2020-03-11 19:46:14 -05:00
on:
2020-03-11 20:15:30 -05:00
tags: true