mirror of
https://github.com/aquasecurity/linux-bench.git
synced 2025-02-23 14:45:33 +01:00
Update .travis.yml
Added for Codecov
This commit is contained in:
parent
75f484e024
commit
3ed1a85c7e
1 changed files with 23 additions and 1 deletions
24
.travis.yml
24
.travis.yml
|
@ -1,8 +1,30 @@
|
||||||
---
|
---
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
sudo: required
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- sudo apt-get -qq update
|
||||||
|
- sudo apt-get install -y rpm
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go test ./...
|
- GO111MODULE=on go test ./...
|
||||||
|
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
- provider: script
|
||||||
|
skip_cleanup: true
|
||||||
|
script: curl -sL https://git.io/goreleaser | bash
|
||||||
|
on:
|
||||||
|
tags: true
|
||||||
|
condition: "$TRAVIS_OS_NAME = linux"
|
||||||
|
|
||||||
|
env:
|
||||||
|
matrix:
|
||||||
|
- GO111MODULE=on
|
||||||
|
|
Loading…
Add table
Reference in a new issue