From 0935307337f788d9635a12c4629dad4341bf71fd Mon Sep 17 00:00:00 2001 From: 030 Date: Tue, 7 May 2019 04:11:34 +0200 Subject: [PATCH] [GH-35] enforce LF --- .gitattributes | 1 + .travis.yml | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fcadb2c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf diff --git a/.travis.yml b/.travis.yml index e0ec28b..8f867f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,17 @@ language: go go: - 1.12.4 +env: + global: + - SHA512_CMD=sha512sum + - GO111MODULE=on matrix: include: - os: linux dist: bionic - os: osx + env: SHA512_CMD="shasum -a 512" - os: windows -env: - - GO111MODULE=on addons: sonarcloud: organization: 030-github @@ -19,7 +22,7 @@ script: - export DELIVERABLE="go-yq-${GOOS}" - go test -short -cover -v -coverprofile=coverage.out -covermode=atomic ./... - go build -o $DELIVERABLE - - shasum -a 512 $DELIVERABLE > ${DELIVERABLE}.sha512.txt + - $SHA512_CMD $DELIVERABLE > ${DELIVERABLE}.sha512.txt - sonar-scanner -Dsonar.projectKey=030_go-yq -Dsonar.sources=. -Dsonar.host.url=https://sonarcloud.io -Dsonar.coverage.exclusions=**/*_test.go -Dsonar.go.coverage.reportPaths="coverage.out" deploy: provider: releases