Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit b70b520

Browse files
committed
first pass at adding travis CI
1 parent 9975223 commit b70b520

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
language: python
3+
python:
4+
- "2.7"
5+
- "3.4"
6+
- "3.5"
7+
- "3.6"
8+
- "3.7"
9+
- "3.8"
10+
virtualenv:
11+
system_site_packages: true
12+
install:
13+
- pip install -r requirements.txt
14+
- python setup.py -q install
15+
script:
16+
- pytest
17+
- make cli4test

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ install: build
3535
test: all
3636
# to be done
3737

38+
cli4test: all
39+
$(PYTHON) -m cli4 /ips > /dev/null
40+
3841
sdist: all
3942
make clean
4043
make test
@@ -78,8 +81,8 @@ lint:
7881

7982
api:
8083
@tmp=/tmp/_$$$$_ ; \
81-
python -m cli4 --dump | sort > $$tmp.1 ; \
82-
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 ; \
84+
$(PYTHON) -m cli4 --dump | sort > $$tmp.1 ; \
85+
$(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 ; \
8386
egrep -v '; deprecated' < $$tmp.2 | diff $$tmp.1 - > $$tmp.3 ; \
8487
echo "In code:" ; \
8588
egrep '< ' < $$tmp.3 | sed -e 's/< / /' | sort | tee $$tmp.4 ; \

0 commit comments

Comments
 (0)