From bb622ed07dae1bd1aec0ba7e1ffb981cd8a2f5f1 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 15 May 2019 00:23:23 +0200 Subject: [PATCH] [GH-35] restrict testing to linux --- .travis.yml | 2 +- CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index acf2ac0f..6b4ac8fb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ addons: script: - diff -u <(echo -n) <(gofmt -d ./) - export DELIVERABLE="n3dr-${TRAVIS_OS_NAME}" - - go test -short -cover -v -coverprofile=coverage.out -covermode=atomic ./... + - if [ "$TRAVIS_OS_NAME" == "linux" ]; then go test -short -cover -v -coverprofile=coverage.out -covermode=atomic ./...; fi - go build -o $DELIVERABLE - $SHA512_CMD $DELIVERABLE > ${DELIVERABLE}.sha512.txt - if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then sonar-scanner -Dsonar.projectKey=030_n3dr -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io -Dsonar.coverage.exclusions=**/*_test.go -Dsonar.go.coverage.reportPaths="coverage.out"; fi diff --git a/CHANGELOG.md b/CHANGELOG.md index 5124383f..bbfa5e0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Restrict testing to linux as docker is omitted on Mac and Windows build in travis. ## [1.0.1] - 2019-05-14 ### Fixed