Skip to content

Commit

Permalink
first pass at adding travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Sep 20, 2020
1 parent 9975223 commit b70b520
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
virtualenv:
system_site_packages: true
install:
- pip install -r requirements.txt
- python setup.py -q install
script:
- pytest
- make cli4test
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ install: build
test: all
# to be done

cli4test: all
$(PYTHON) -m cli4 /ips > /dev/null

sdist: all
make clean
make test
Expand Down Expand Up @@ -78,8 +81,8 @@ lint:

api:
@tmp=/tmp/_$$$$_ ; \
python -m cli4 --dump | sort > $$tmp.1 ; \
python -m cli4 --api | sed -e 's/^[A-Z][A-Z]* *//' -e 's/\/:[a-z_]*/\/:id/g' -e 's/\/:id$$//' -e 's/\/:id ;/ ;/' | sort | uniq > $$tmp.2 ; \
$(PYTHON) -m cli4 --dump | sort > $$tmp.1 ; \
$(PYTHON) -m cli4 --api | sed -e 's/^[A-Z][A-Z]* *//' -e 's/\/:[a-z_]*/\/:id/g' -e 's/\/:id$$//' -e 's/\/:id ;/ ;/' | sort | uniq > $$tmp.2 ; \
egrep -v '; deprecated' < $$tmp.2 | diff $$tmp.1 - > $$tmp.3 ; \
echo "In code:" ; \
egrep '< ' < $$tmp.3 | sed -e 's/< / /' | sort | tee $$tmp.4 ; \
Expand Down

0 comments on commit b70b520

Please sign in to comment.