mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
fc79a716d9
This token can only be used for uploading coverage reports, so the worst that can happen is getting false coverage reports. The token can be revoked if such abuse ever happens.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
test_task:
|
|
env:
|
|
ELVISH_TEST_TIME_SCALE: 10
|
|
CODECOV_TOKEN: e10d2e99-591b-4d2a-a8cf-8ca3e8d6df61
|
|
go_modules_cache:
|
|
fingerprint_script: cat go.sum
|
|
folder: $GOPATH/pkg/mod
|
|
matrix:
|
|
- name: Test on Linux
|
|
container:
|
|
image: golang:latest
|
|
- name: Test on Linux (Old Supported Go Version)
|
|
container:
|
|
image: golang:1.13
|
|
- name: Test on macOS
|
|
osx_instance:
|
|
image: catalina-base
|
|
setup_script: brew install go
|
|
env:
|
|
GOPATH: $HOME/go
|
|
- name: Test on FreeBSD
|
|
freebsd_instance:
|
|
image_family: freebsd-12-1
|
|
setup_script: pkg install -y go bash
|
|
env:
|
|
GOPATH: $HOME/go
|
|
go_version_script: go version
|
|
test_script: go test -race ./...
|
|
upload_coverage_script:
|
|
- go test -coverprofile=coverage -covermode=set ./...
|
|
- curl -s https://codecov.io/bash -o codecov && bash codecov -f coverage -t $CODECOV_TOKEN
|
|
|
|
deploy_task:
|
|
name: Build binaries and deploy to bintray
|
|
only_if: $CIRRUS_PR == ""
|
|
env:
|
|
BINTRAY_TOKEN: ENCRYPTED[1a1820d17a2014de6b1798d379f86aa24bbd8acd5149656a98bfdf33746c78c85fefc8e6e522fedacdf8c4bf92bb25a0]
|
|
go_modules_cache:
|
|
fingerprint_script: cat go.sum
|
|
folder: $GOPATH/pkg/mod
|
|
container:
|
|
image: theelves/cirrus-builder
|
|
go_version_script: go version
|
|
deploy_script: ./tools/cirrus-deploy.sh
|