mirror of
https://github.com/gonum/gonum.git
synced 2025-10-30 02:02:09 +08:00
README,travis: revert to previous behaviour and add badge to README
This commit is contained in:
@@ -58,8 +58,7 @@ script:
|
||||
- go build -v ./...
|
||||
- go test $TAGS -v ./...
|
||||
# Only run test coverage analysis if we are secure and even with origin master.
|
||||
# - if [[ "${TRAVIS_SECURE_ENV_VARS}" == true && "$(git ls-remote origin master | cut -f1)" == "$(git rev-parse HEAD)" ]]; then bash ./.travis/test-coverage.sh; fi
|
||||
- if [[ "${TRAVIS_SECURE_ENV_VARS}" == true ]]; then bash ./.travis/test-coverage.sh; fi
|
||||
- if [[ "${TRAVIS_SECURE_ENV_VARS}" == true && "$(git ls-remote origin master | cut -f1)" == "$(git rev-parse HEAD)" ]]; then bash ./.travis/test-coverage.sh; fi
|
||||
- ${TRAVIS_BUILD_DIR}/.travis/check-imports.sh
|
||||
# This is run last since it alters the tree.
|
||||
- ${TRAVIS_BUILD_DIR}/.travis/check-generate.sh
|
||||
|
||||
@@ -4,25 +4,6 @@ MODE=set
|
||||
PROFILE_OUT="${PWD}/profile.out"
|
||||
ACC_OUT="${PWD}/coverage.txt"
|
||||
|
||||
# FIXME(kortschak): Remove this; temporarily only doing latest release.
|
||||
latestRelease=$(
|
||||
git ls-remote --tags https://github.com/golang/go.git 'go*' \
|
||||
| egrep 'go[1-9]+\.[0-9]+\.[0-9]+$' \
|
||||
| sed -e 's|^.*tags/||g' \
|
||||
| sort -V \
|
||||
| tail -n 1
|
||||
)
|
||||
echo Latest Go release: $latestRelease
|
||||
|
||||
currentVersion=$(go version | cut -d' ' -f3)
|
||||
echo Current Go version: $currentVersion
|
||||
|
||||
if [[ "${currentVersion%.*}" != "${latestRelease%.*}" ]]; then
|
||||
echo Skipping coverage analysis.
|
||||
exit 0
|
||||
fi
|
||||
#######################################################################
|
||||
|
||||
testCover() {
|
||||
# set the return value to 0 (successful)
|
||||
retval=0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Gonum [](https://www.travis-ci.org/gonum/gonum/branches) [](https://ci.appveyor.com/project/Gonum/gonum/branch/master) [](https://coveralls.io/github/gonum/gonum?branch=master) [](https://godoc.org/gonum.org/v1/gonum) [](https://goreportcard.com/report/github.com/gonum/gonum) [](https://github.com/emersion/stability-badges#unstable)
|
||||
# Gonum [](https://www.travis-ci.org/gonum/gonum/branches) [](https://ci.appveyor.com/project/Gonum/gonum/branch/master) [](https://codecov.io/gh/gonum/gonum) [](https://coveralls.io/github/gonum/gonum?branch=master) [](https://godoc.org/gonum.org/v1/gonum) [](https://goreportcard.com/report/github.com/gonum/gonum) [](https://github.com/emersion/stability-badges#unstable)
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user