Migrate and build extracted v1 examples
This commit is contained in:
parent
3914ca9d5f
commit
5565a03705
10
.travis.yml
10
.travis.yml
@ -29,6 +29,10 @@ matrix:
|
|||||||
before_script:
|
before_script:
|
||||||
- go get github.com/urfave/gfmxr/...
|
- go get github.com/urfave/gfmxr/...
|
||||||
- pip install --user flake8
|
- 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:
|
script:
|
||||||
- flake8 runtests cli-v1-to-v2
|
- flake8 runtests cli-v1-to-v2
|
||||||
@ -36,3 +40,9 @@ script:
|
|||||||
- ./runtests test
|
- ./runtests test
|
||||||
- ./runtests gfmxr
|
- ./runtests gfmxr
|
||||||
- ./cli-v1-to-v2 --selftest
|
- ./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
|
||||||
|
Loading…
Reference in New Issue
Block a user