From 737c417843fa0bd50bb4245a2a40c7ebb8de29a2 Mon Sep 17 00:00:00 2001 From: Vianney Tran Date: Thu, 25 Jan 2018 11:14:14 -0500 Subject: [PATCH 1/4] [travis] Add .travis.yml --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0f2bfe4 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: go + +go: + - 1.6.x + - 1.7.x + +wget http://sun.aei.polsl.pl/~sdeor/corpus/mr.bz2 +bzip2 -d mr.bz2 +export PAYLOAD=`pwd`/mr +go build +go test -v +go test -bench . From 1f4c6b2a935c3b342ceb11eab18d7e049bf1302a Mon Sep 17 00:00:00 2001 From: Vianney Tran Date: Thu, 25 Jan 2018 11:19:58 -0500 Subject: [PATCH 2/4] [travis] Put it under a script --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0f2bfe4..fb8fd5d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,9 @@ go: - 1.6.x - 1.7.x -wget http://sun.aei.polsl.pl/~sdeor/corpus/mr.bz2 -bzip2 -d mr.bz2 -export PAYLOAD=`pwd`/mr -go build -go test -v -go test -bench . +script: + - "wget http://sun.aei.polsl.pl/~sdeor/corpus/mr.bz2" + - "bzip2 -d mr.bz2" + - "go build" + - "PAYLOAD=`pwd`/mr go test -v" + - "PAYLOAD=`pwd`/mr go test -bench ." From 2363f414d88a35addd7c41d33a9b9921f278180e Mon Sep 17 00:00:00 2001 From: Vianney Tran Date: Thu, 25 Jan 2018 11:26:53 -0500 Subject: [PATCH 3/4] [travis] Support only 2 most recent go version --- .travis.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb8fd5d..5f9b75c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,13 @@ language: go go: - - 1.6.x - - 1.7.x + - 1.8.x + - 1.9.x -script: +install: - "wget http://sun.aei.polsl.pl/~sdeor/corpus/mr.bz2" - "bzip2 -d mr.bz2" +script: - "go build" - "PAYLOAD=`pwd`/mr go test -v" - "PAYLOAD=`pwd`/mr go test -bench ." From 0c8ca9cef6a57206aa2840dc49fd721feaa9024d Mon Sep 17 00:00:00 2001 From: Vianney Tran Date: Thu, 25 Jan 2018 11:37:35 -0500 Subject: [PATCH 4/4] [travis] Try building on OSX too According to https://docs.travis-ci.com/user/languages/go/ > Go builds are not available on the OS X environment. But on OSX page: https://docs.travis-ci.com/user/reference/osx/#Languages > go 1.9.1 Worth a try --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5f9b75c..ba34fcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ go: - 1.8.x - 1.9.x +os: + - linux + - osx + install: - "wget http://sun.aei.polsl.pl/~sdeor/corpus/mr.bz2" - "bzip2 -d mr.bz2"