-
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
21 changed files
with
12,305 additions
and
82 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
Oops, something went wrong.