Skip to content

Commit eba4fc9

Browse files
committed
Add package build to travis CI
1 parent a19dcf4 commit eba4fc9

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: python
2-
sudo: false
2+
dist: trusty
3+
sudo: required
34
python:
45
- "2.7"
5-
install:
6-
- pip install coverage coveralls
6+
install: true
77
script:
8-
- coverage run setup.py test # tests still to be implemented
9-
- coveralls || true
8+
- $TRAVIS_BUILD_DIR/scripts/travis.sh

scripts/travis.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
sudo apt-get update -y
6+
7+
sudo apt-get install -y debhelper devscripts dh-apparmor dh-python python python-pip python-setuptools python-sphinx
8+
9+
pip install -r requirements.txt
10+
pip install coverage coveralls
11+
12+
coverage run setup.py test # tests still to be implemented
13+
coveralls
14+
15+
./scripts/build.sh -d trusty -t $TRAVIS_COMMIT -n

0 commit comments

Comments
 (0)