forked from Debian/debsources
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (31 loc) · 1.14 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: python
python:
- "2.7"
addons:
postgresql: "9.3"
# debsources uses 9.4
notifications:
email: false
before_install:
- pwd
- sudo apt-get update -qq
- sudo apt-get install -y tango-icon-theme debmirror exuberant-ctags sloccount dpkg-dev libapt-pkg-dev diffstat
- git clone https://github.com/file/file.git ../file && pip install -e ../file/python
- pip install https://launchpad.net/python-apt/main/0.7.8/+download/python-apt-0.8.5.tar.gz
- pip install flake8
# apt's python-magic and pypi's python-magic are different.
# We need the one in apt, and since it's not in pypi, it's installed
# through wget (because Travis uses virtual env without dist-packages).
# Will likely break soon.
# packages missing: libjs-highlight (not in Ubuntu 12.04)
before_script:
- cp etc/config.travis.ini etc/config.ini
- sed -i 's?TRAVISWD?'`pwd`'?' etc/config.ini
- export PYTHONPATH=$PYTHONPATH:$(pwd)/debsources
- psql -c 'create database debsources;' -U postgres
- bin/debsources-dbadmin --createdb postgresql://postgres@localhost/debsources
- bin/debsources-update -vv
script: make check test-travis
branches:
except:
- bugs