language: go

sudo: false

cache: pip

go:
- 1.2.2
- 1.3.3
- 1.4
- 1.5.4
- 1.6.2
- master

matrix:
  allow_failures:
  - go: master
  include:
  - go: 1.6.2
    os: osx
    env: PATH=$HOME/.local/bin:$PATH
  - go: 1.1.2
    install: go get -v .
    before_script: echo skipping gfmxr on $TRAVIS_GO_VERSION
    script:
    - ./runtests vet
    - ./runtests test

before_script:
- go get github.com/urfave/gfmxr/...
- pip install --user flake8

script:
- flake8 runtests cli-v1-to-v2
- ./runtests vet
- ./runtests test
- ./runtests gfmxr
- ./cli-v1-to-v2 --selftest

language: go

sudo: false

cache: pip

go:
- 1.2.2
- 1.3.3
- 1.4
- 1.5.4
- 1.6.2
- master

matrix:
  allow_failures:
  - go: master
  include:
  - go: 1.6.2
    os: osx
    env: PATH=$HOME/.local/bin:$PATH
  - go: 1.1.2
    install: go get -v .
    before_script: echo skipping gfmxr on $TRAVIS_GO_VERSION
    script:
    - ./runtests vet
    - ./runtests test

before_script:
- go get github.com/urfave/gfmxr/...
- pip install --user flake8
- mkdir -p .extracted-examples
- curl -sSL -o .extracted-examples/README.md
    'https://raw.githubusercontent.com/urfave/cli/v1/README.md'
- cd .extracted-examples && gfmxr extract -o .

script:
- flake8 runtests cli-v1-to-v2
- ./runtests vet
- ./runtests test
- ./runtests gfmxr
- ./cli-v1-to-v2 --selftest
- for f in .extracted-examples/*.go ; do
    ./cli-v1-to-v2 -w $f ;
    go build -o .extracted-examples/example $f ;
    ./cli-v1-to-v2 -w $f ;
    go build -o .extracted-examples/example $f ;
  done

Migrate and build extracted v1 examples
Migrate and build extracted v1 examples
