Skip to content

Commit 80b637c

Browse files
committed
Travis support
1 parent ce60dbf commit 80b637c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: python
2+
python: "2.7"
3+
os: linux
4+
script: ./check

check

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/sh
2+
3+
if test $# -ne 0
4+
then
5+
echo >&2 "Usage: $0"
6+
exit 2
7+
fi
8+
9+
if ! test -e config.py
10+
then
11+
echo >&2 "Creating dummy config.py..."
12+
13+
cat >config.py <<!
14+
slack_token = "invalid"
15+
user_renames = {}
16+
channel_max_players = {}
17+
!
18+
fi
19+
20+
ec=0
21+
22+
for f in *.spec.py
23+
do
24+
if ! python "$f"
25+
then ec=1
26+
fi
27+
done
28+
29+
exit $ec

0 commit comments

Comments
 (0)