This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
forked from scylladb/gocql
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test with Go 1.13 and 1.12 in CI (apache#1347)
* Fix tests in Go 1.13 The flag.Parse() in common-test.go init() causes errors to be raised since package testing no longer registers it's flags in its own init(), but instead provides testing.Init(). One option to fix this is to call testing.Init() just before calling flag.Parse(). However, testing.Init() is not available in older Go releases so we'd need to create separate versions of init() based on build tags. Instead, we can remove the call to flag.Parse() altogether as it was only used to set clusterHosts variable and we defer parsing of clusterHosts to a time when tests are executed. This version of code runs both on Go 1.12 and Go 1.13. * Test with Go 1.13 and 1.12 in CI As per the README: In general, the gocql team will focus on supporting the current and previous versions of Go.
- Loading branch information
1 parent
d63913d
commit 16cf9ea
Showing
5 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,8 @@ env: | |
AUTH=false | ||
|
||
go: | ||
- 1.11.x | ||
- 1.12.x | ||
- 1.13.x | ||
|
||
install: | ||
- ./install_test_deps.sh $TRAVIS_REPO_SLUG | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters