build: update to use go1.14 for the build

This commit is contained in:
Nick Craig-Wood 2020-02-26 21:17:06 +00:00
parent abb9f89f65
commit 3855c003ce
9 changed files with 16 additions and 30 deletions

View File

@ -19,12 +19,12 @@ jobs:
strategy:
fail-fast: false
matrix:
job_name: ['linux', 'mac', 'windows_amd64', 'windows_386', 'other_os', 'modules_race', 'go1.10', 'go1.11', 'go1.12']
job_name: ['linux', 'mac', 'windows_amd64', 'windows_386', 'other_os', 'modules_race', 'go1.11', 'go1.12', 'go1.13']
include:
- job_name: linux
os: ubuntu-latest
go: '1.13.x'
go: '1.14.x'
modules: 'off'
gotags: cmount
build_flags: '-include "^linux/"'
@ -34,7 +34,7 @@ jobs:
- job_name: mac
os: macOS-latest
go: '1.13.x'
go: '1.14.x'
modules: 'off'
gotags: '' # cmount doesn't work on osx travis for some reason
build_flags: '-include "^darwin/amd64" -cgo'
@ -44,7 +44,7 @@ jobs:
- job_name: windows_amd64
os: windows-latest
go: '1.13.x'
go: '1.14.x'
modules: 'off'
gotags: cmount
build_flags: '-include "^windows/amd64" -cgo'
@ -54,7 +54,7 @@ jobs:
- job_name: windows_386
os: windows-latest
go: '1.13.x'
go: '1.14.x'
modules: 'off'
gotags: cmount
goarch: '386'
@ -65,7 +65,7 @@ jobs:
- job_name: other_os
os: ubuntu-latest
go: '1.13.x'
go: '1.14.x'
modules: 'off'
build_flags: '-exclude "^(windows/|darwin/amd64|linux/)"'
compile_all: true
@ -73,17 +73,11 @@ jobs:
- job_name: modules_race
os: ubuntu-latest
go: '1.13.x'
go: '1.14.x'
modules: 'on'
quicktest: true
racequicktest: true
- job_name: go1.10
os: ubuntu-latest
go: '1.10.x'
modules: 'off'
quicktest: true
- job_name: go1.11
os: ubuntu-latest
go: '1.11.x'
@ -96,6 +90,12 @@ jobs:
modules: 'off'
quicktest: true
- job_name: go1.13
os: ubuntu-latest
go: '1.13.x'
modules: 'off'
quicktest: true
name: ${{ matrix.job_name }}
runs-on: ${{ matrix.os }}

View File

@ -1,7 +1,7 @@
//+build !go1.10
//+build !go1.11
package fs
// Upgrade to Go version 1.10 to compile rclone - latest stable go
// Upgrade to Go version 1.11 to compile rclone - latest stable go
// compiler recommended.
func init() { Go_version_1_10_required_for_compilation() }
func init() { Go_version_1_11_required_for_compilation() }

View File

@ -1,7 +1,5 @@
// Clean the left over test files
// +build go1.11
package main
import (

View File

@ -1,7 +1,5 @@
// Config handling
// +build go1.11
package main
import (

View File

@ -1,5 +1,3 @@
// +build go1.11
package main
import (

View File

@ -1,7 +1,5 @@
// Run a test
// +build go1.11
package main
import (

View File

@ -1,5 +1,3 @@
// +build go1.11
package main
import (

View File

@ -1,5 +1,3 @@
// +build go1.11
// Run tests for all the remotes. Run this with package names which
// need integration testing.
//

View File

@ -1,5 +1,3 @@
// +build go1.10
package main
import (