Do not test ./altsrc on go1.1
as the YAML library requires go1.2+
This commit is contained in:
parent
0eb4e0be6c
commit
00bd2a95b2
@ -18,7 +18,10 @@ Command line apps are usually so tiny that there is absolutely no reason why you
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Make sure you have a working Go environment (go 1.1+ is *required*). [See the install instructions](http://golang.org/doc/install.html).
|
Make sure you have a working Go environment. Go version 1.1+ is required for
|
||||||
|
core cli, whereas use of the [`./altsrc`](./altsrc) input extensions requires Go
|
||||||
|
version 1.2+. [See the install
|
||||||
|
instructions](http://golang.org/doc/install.html).
|
||||||
|
|
||||||
To install cli, simply run:
|
To install cli, simply run:
|
||||||
```
|
```
|
||||||
|
2
runtests
2
runtests
@ -33,7 +33,7 @@ def main(sysargs=sys.argv[:]):
|
|||||||
|
|
||||||
def _test():
|
def _test():
|
||||||
if check_output('go version'.split()).split()[2] < 'go1.2':
|
if check_output('go version'.split()).split()[2] < 'go1.2':
|
||||||
_run('go test -v ./...'.split())
|
_run('go test -v .'.split())
|
||||||
return
|
return
|
||||||
|
|
||||||
coverprofiles = []
|
coverprofiles = []
|
||||||
|
Loading…
Reference in New Issue
Block a user