Commit Graph

53 Commits

Author SHA1 Message Date
Sebastiaan van Stijn feebf74e97
travis: run mage with -v to not discard output
Before this:

    $ go run mage.go lint
    Error: running "/Users/sebastiaan/go/bin/golangci-lint run ./..." failed with exit code 1
    exit status 1

    $ go run mage.go test
    Error: running "go test -race -v ./..." failed with exit code 1
    exit status 1

After this:

    $ go run mage.go -v lint
    Running target: Lint
    exec: /Users/sebastiaan/go/bin/golangci-lint run ./...
    entry.go:89:6: `iamNotUsed` is unused (deadcode)
    func iamNotUsed() {
         ^
    Error: running "/Users/sebastiaan/go/bin/golangci-lint run ./..." failed with exit code 1
    exit status 1

    $ go run mage.go -v test
    Running target: Test
    exec: go test -race -v ./...
    === RUN   TestRegister
    ...
    ?   	github.com/sirupsen/logrus/internal/testutils	[no test files]
    FAIL
    Error: running "go test -race -v ./..." failed with exit code 1
    exit status 1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-02-19 12:42:03 +01:00
David Bariod 3986c92379 add a test target in the magefile 2021-02-13 06:45:48 +01:00
David Bariod b02b418f8f migrate lint script to a mage target 2020-12-17 15:58:09 +01:00
David Bariod 4b818a50d4 migrate cross build target from bash script to mage 2020-11-26 06:33:19 +01:00
David Bariod 581900062e bump golangci-lint version 2020-11-06 13:26:15 +01:00
David Bariod 0d28e29335 bump golang versions in travis ci 2020-11-06 13:14:07 +01:00
David Bariod ab4d0e6ead run CI for go 1.13 and 1.14 2020-03-03 09:10:14 +01:00
David Bariod f4ece9c82f
Merge pull request #1052 from sirupsen/activate_linter
run golangci-lint on travis
2019-10-25 17:13:36 +02:00
David Bariod 88d44306be remove go1.11.x from travis build matrix 2019-10-25 14:53:19 +02:00
David Bariod b77b626665 run golangci-lint on travis 2019-10-25 14:49:48 +02:00
Edward Muller 68e6dbbcb7
Exclude go1.13.x from modules off, only build all on go1.13 modules on 2019-10-13 17:30:04 -07:00
Edward Muller ad9f41a0cd
pull all the install into a single location 2019-10-13 16:56:28 -07:00
Edward Muller 75440f2ebe
get some other deps 2019-10-13 16:51:57 -07:00
Edward Muller 8ec9a493ec
Enable all of these to see what fails 2019-10-13 16:47:33 -07:00
Edward Muller 7b6c0d11ad
Disable modules, run on osx 2019-10-13 16:39:38 -07:00
Pantelis Sampaziotis 0cb0485e38 add Go 1.13 in travis 2019-10-11 16:42:11 +03:00
David Bariod f2849a8fb2
add full cross compilation in travis (#963)
* add full cross compilation in travis

* reduce the travis build matrix

* disable cross build for plan9 and nacl
2019-05-18 10:27:12 +02:00
David Bariod 1a601d2059 remove go 1.10 from ci build matrix 2019-05-10 06:44:02 +02:00
Andrey Tcherepanov 7d700cdff0 Test more platforms
It would be 5 * 3 = 15 runs
2019-03-28 16:13:21 -06:00
Andrey Tcherepanov 5d8c3bffc9 Updated travis.yml 2019-03-27 10:59:38 -06:00
Andrey Tcherepanov 7de3dd8c8b Removed golang.org/x/crypto refs 2019-03-27 10:56:55 -06:00
Emil Hessman c076594430 Add Go 1.12 to Travis CI build matrix 2019-03-27 07:08:19 +01:00
Olivier Mengué 0c5e33c7e0 Travis: fix checkout dir to help contributors run Travis on their fork
Set the Travis-CI checkout path to allow contributors running Travis-CI
on their fork to have Travis-CI launching using the canonical import
path instead of the path of the fork.
2018-11-25 23:15:12 +01:00
Mark Dittmer 0a8fc8d77c Add AppEngine test configurations to travis to a void regression 2018-09-17 13:56:18 -04:00
David Bariod eed7c22374 Fix travis build for go 1.11 with modules 2018-09-08 09:44:05 +02:00
David Bariod 66895ce165 Fix module name and remove unused dependencies 2018-09-08 08:27:05 +02:00
Dave Goddard f75951b604 Add go module support
Travis will only run the "go get" install lines if using go 1.10.x
2018-09-06 09:54:44 -03:00
David Bariod e58aa84bc1 bump go toolchain version in travis 2018-08-30 22:06:53 +02:00
David Bariod 54db2bb29a limit the build/test matrix to the two latest stable version 2018-07-20 13:35:37 +02:00
David Bariod b1e82bef65 Update go versions in travis configuration.
We only keep the latest 3 language release.
Fixes #753
2018-05-13 10:29:45 +02:00
dmathieu 8a90bf3fff use x/sys for non-unix files 2017-07-26 10:51:31 +02:00
dmathieu 0af92424f9 install x/sys/unix before running the travis tests 2017-07-26 10:50:52 +02:00
dmathieu a4149b6fd1 travis needs the airbrake hook 2017-07-19 16:53:07 +02:00
dmathieu bfff600029 test all subpackages too 2017-07-19 16:31:49 +02:00
Simon Eskildsen 85b1699d50 ci: v1.0.0 fix travis 2017-06-08 18:14:41 -04:00
Simon Eskildsen 5e5dc89865 travis: clean up 2017-05-15 06:59:10 -04:00
Simon Eskildsen 0efc3b9c6f travis: don't go get recursively 2017-05-15 06:34:13 -04:00
Simon Eskildsen df6d5a7115 travis: don't go get 2017-05-15 06:31:11 -04:00
Jonathan Hall dba7a9fd25 Add Go 1.8 to the testing matrix
And use the .x versions, so the latest versions of each Go release is used.
2017-04-20 09:50:47 +02:00
Stephen J Day 6ecd392994
travis: build Go 1.7 as well, removed by revert
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-11-23 16:20:51 -08:00
Stephen J Day a89950b151 Revert "Updated .travis.yml to ignore /examples/"
This reverts commit 140886f9dc.
2016-11-23 16:19:58 -08:00
Simon Eskildsen 528e33852c Remove legacy go versions 2016-11-11 07:09:38 -05:00
irfan sharif 140886f9dc
Updated .travis.yml to ignore /examples/
/examples/hook/hook.go with it's child dependency on airbrake/gobrake is
not backwards compatible pre-go1.6 due to use of the following:
  - os.LookupEnv (introduced in go1.5)
  - http.StatusTooManyRequests (introduced in go1.6)
ignoring the fetch and explicit test of /examples/ fixes failing go1.3,
go1.4, go1.5 builds.
2016-11-03 01:28:25 -04:00
Austin Riendeau 621d3983b3 add go 1.6 to travis 2016-04-18 11:14:45 -06:00
Ronny López 6094714616 Run tests with -race 2016-01-23 11:18:45 +01:00
Simon Eskildsen fe72f59ae7 travis: remove support for 1.2 2015-10-05 12:05:41 +00:00
Giovanni Bajo 0009c01b31 Simplify dep install 2015-01-18 02:19:28 +01:00
Giovanni Bajo 0e4c360cd8 Test with go 1.4 2015-01-18 02:06:44 +01:00
Roberto Bampi 0e6a27180f added raven-go to .travis.yml 2014-11-02 19:39:51 +01:00
Alex Payne 1aa71730f7 Include airbrake-go dependency in Travis install step. 2014-09-14 11:55:49 -07:00