-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update slybot to work with python 3.7 and Scrapy 1.6
- Loading branch information
Showing
19 changed files
with
94 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,11 @@ script: | |
- echo "Portia is at:"`git show -s --pretty=%d HEAD` | ||
- git restore-mtime | ||
- shopt -s extglob | ||
- nvm install 6.10.0 | ||
- nvm use 6.10.0 | ||
- nvm install 10.16.0 | ||
- nvm use 10.16.0 | ||
- sudo mkdir -p ~/.npm ~/.node-gyp ~/.cache | ||
- sudo chown -R ubuntu ~/.npm ~/.node-gyp ~/.cache | ||
- npm install -g bower ember-cli --cache-min 999999 | ||
- ember version | ||
- npm install -g bower [email protected] --cache-min 999999 | ||
- docker/compile-assets.sh | ||
- build_docker_image | ||
- publish_to_dockerhub | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
language: python | ||
python: 3.5 | ||
sudo: required | ||
dist: xenial | ||
python: 3.7 | ||
dist: bionic | ||
services: | ||
- docker | ||
env: | ||
- WHEELHOUSE=$HOME/.cache/wheelhouse PIP_FIND_LINKS=file://$WHEELHOUSE PIP_WHEEL_DIR=$WHEELHOUSE | ||
cache: | ||
|
@@ -11,42 +12,28 @@ cache: | |
- portiaui/node_modules | ||
- portiaui/bower_components | ||
|
||
before_install: | ||
- docker build -t scrapinghub/portia . | ||
- docker ps -a | ||
|
||
install: | ||
- source ${VIRTUAL_ENV}/bin/activate | ||
- cd docker | ||
- sudo -H ./provision.sh install_splash | ||
- cd .. | ||
- sudo -H pip install tox | ||
- python3.5 -c 'import splash, qt5reactor' # Check it's in the python path | ||
- cd portiaui | ||
- nvm install 6.10.0 | ||
- nvm use 6.10.0 | ||
- npm install -g bower | ||
- docker run scrapinghub/portia /app/docker/run-tests.sh | ||
- pushd portiaui | ||
- nvm install 10.16.0 | ||
- nvm use 10.16.0 | ||
- npm install -g bower [email protected] | ||
- npm install | ||
- bower install | ||
- cd .. | ||
- popd | ||
|
||
before_script: | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
- source ${VIRTUAL_ENV}/bin/activate | ||
- export PYTHONPATH=`pwd`/slybot:`pwd`/slyd | ||
- cd slyd | ||
- python2.7 tests/testserver/server.py 2>&1 | grep -v 'HTTP/1.1" 200' & | ||
- cd .. | ||
- sleep 3 # give xvfb some time to start | ||
script: | ||
- cd ./slybot | ||
- sudo -E tox | ||
- cd ../portia_server | ||
- ./manage.py test portia_orm.tests | ||
- ./manage.py test portia_api.tests | ||
- cd ../portiaui | ||
- pushd portiaui | ||
- npm rebuild node-sass | ||
- npm test | ||
- popd | ||
|
||
before_deploy: | ||
- cd ../slybot | ||
- cd slybot | ||
- pip install twine | ||
- sudo chown -R $USER . | ||
deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
export PYTHONPATH=`pwd`/slybot:`pwd`/slyd | ||
pip install tox | ||
|
||
cd /app/slyd | ||
python2.7 tests/testserver/server.py 2>&1 | grep -v 'HTTP/1.1" 200' & | ||
sleep 3 | ||
|
||
cd /app/slybot | ||
tox | ||
cd /app/portia_server | ||
./manage.py test portia_orm.tests | ||
./manage.py test portia_api.tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import StorageObject from 'ember-local-storage/local/object'; | ||
|
||
const Storage = StorageObject.extend(); | ||
|
||
export default Storage; | ||
export default StorageObject.extend(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import StorageObject from 'ember-local-storage/local/object'; | ||
|
||
const Storage = StorageObject.extend(); | ||
|
||
export default Storage; | ||
export default StorageObject.extend(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import StorageObject from 'ember-local-storage/local/object'; | ||
|
||
const Storage = StorageObject.extend(); | ||
|
||
export default Storage; | ||
export default StorageObject.extend(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
tox==2.5.0 | ||
tox==3.12.1 | ||
nose==1.3.7 | ||
nose-timer==0.6.0 | ||
nose-timer==0.7.5 | ||
doctest-ignore-unicode==0.1.2 | ||
setuptools>=36.0.1 | ||
setuptools>=41.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Slybot requirements | ||
numpy==1.14.2 | ||
Scrapy==1.5.0 | ||
scrapely==0.13.2 | ||
numpy==1.16.4 | ||
Scrapy==1.6.0 | ||
scrapely==0.13.5 | ||
loginform==1.2.0 | ||
lxml==4.2.0 | ||
dateparser==0.7.0 | ||
python-dateutil==2.6.0 | ||
lxml==4.3.4 | ||
dateparser==0.7.1 | ||
python-dateutil==2.8.0 | ||
jsonschema==2.6.0 | ||
six==1.11.0 | ||
six==1.12.0 | ||
scrapy-splash==0.7.2 | ||
page_finder==0.1.8 | ||
chardet==3.0.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.13.2' | ||
__version__ = '0.13.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
envlist = py27 | ||
envlist = py27,py37 | ||
|
||
[testenv] | ||
deps = | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters