forked from scrapinghub/portia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (54 loc) · 1.46 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: python
python: 2.7
sudo: false
addons:
apt:
packages:
- python-qt4
env:
- WHEELHOUSE=$HOME/.cache/wheelhouse PIP_FIND_LINKS=file://$WHEELHOUSE PIP_WHEEL_DIR=$WHEELHOUSE
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/.cache/wheelhouse"
- slyd/node_modules
- slyd/bower_components
install:
- pip wheel -r ./slybot/requirements.txt
- pip install --use-wheel -r ./slybot/requirements.txt
- pip install -e ./slybot[tests]
- pip wheel -r ./slyd/requirements.txt
- pip install --use-wheel -r ./slyd/requirements.txt
- cd ./slyd
- npm install -g bower
- npm install
- bower install
- cd ../
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- cd slyd
- PYTHONPATH=.:../slybot:/usr/lib/python2.7/dist-packages/ python tests/testserver/server.py 2>&1 | grep -v 'HTTP/1.1" 200' &
- cd ..
- sleep 3 # give xvfb some time to start
script:
- cd ./slybot
- nosetests --with-doctest
- cd ../slyd
- npm test
- PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages/ nosetests --with-doctest
- cd ../
before_deploy:
- cd ./slybot
- pip install twine
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: scrapinghub
password:
secure: S5hZT2YBncUSkPTyR5RUQnACfTsW2ZtpHeQucIamKWN+xkE8KK9O0cWUMuKQ0q3U5ShFkZdhO4PnBjvtP54Dq9IogJAudkDJCylctf4qGoIlWu01mAoJzcUfrS5KW+VolF/opBJObwG38EIOOsVy9UYq7DeQcryAAG1RuMjONAk=
on:
all_branches: true
tags: true
repo: scrapinghub/portia
condition: "$TRAVIS_TAG =~ ^slybot-[0-9][.][0-9]*"