f31dc0aaab
This commit adjusts the previous commit re. the new `ToTimeInDefaultLocationE` and related functions. The functional change is that we don't default to any location if not provided from the caller. This is in line with how `ToTime` worked before we started this, and even if the default behaviour may look weird in some cases, it will not break anything. Most applications will want to use the new *InDefaultLocation functions and decide which default location to use: ```go loc := time.Local if config.Location != "" { loc = time.LoadLocation(config.Location) } t, err := StringToDateInDefaultLocation("2019-01-01", loc) ``` This commit also configure Travis to test on OSX and Windows in addition to Linux.
22 lines
330 B
YAML
22 lines
330 B
YAML
language: go
|
|
env:
|
|
- GO111MODULE=on
|
|
sudo: required
|
|
go:
|
|
- "1.11.x"
|
|
- "1.12.x"
|
|
- tip
|
|
os:
|
|
- linux
|
|
- osx
|
|
- windows
|
|
matrix:
|
|
allow_failures:
|
|
- go: tip
|
|
exclude:
|
|
- os: windows
|
|
go: tip
|
|
fast_finish: true
|
|
script:
|
|
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then go test -v -race ./...; else make check; fi
|