Skip to content

Commit

Permalink
Finish python-apollo testing (#2308)
Browse files Browse the repository at this point in the history
* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* need some nose

* cleanup

* running on port 8080 here

* fix url

* come on

* adding the admin user

* tab
  • Loading branch information
abretaud authored and nathandunn committed Nov 6, 2019
1 parent 798519c commit 0741181
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ language: java
node_js:
- "12"

python:
- '3.6'

env:
- DB=postgres TEST_SUITE=apollo
- DB=mysql TEST_SUITE=apollo
- DB=h2 TEST_SUITE=apollo
- DB=h2 TEST_SUITE=javascript
# - DB=h2 TEST_SUITE=python-apollo
- DB=h2 TEST_SUITE=python-apollo

python:
- 3.6

addons:
postgresql: "9.3"
Expand All @@ -23,7 +23,6 @@ addons:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
- python3

services:
- postgresql
Expand Down Expand Up @@ -65,15 +64,19 @@ script:
fi
- |
if [[ $TEST_SUITE == "python-apollo" ]]; then
set -x
set -ex
cp test/config/python-apollo.travis apollo-config.groovy
./grailsw run-app &
git clone --depth=1 https://github.com/galaxy-genome-annotation/python-apollo
cd python-apollo
pyenv global 3.6.3
sed -i 's|8888|8080/apollo|' `pwd`/test-data/arrow.yml
export ARROW_GLOBAL_CONFIG_PATH=`pwd`/test-data/arrow.yml
pip3 install -U pip setuptools
python3 setup.py install
echo $PATH
./bootstrap_apollo.sh
python3 setup.py nosetests
virtualenv .venv
. .venv/bin/activate
pip install .
pip install nose
./bootstrap_apollo.sh --nodocker
python setup.py nosetests
killall java || true
fi
12 changes: 12 additions & 0 deletions test/config/python-apollo.travis
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@


apollo{
// other stuff
admin{
username = "admin@local.host"
password = "password"
firstName = "Super"
lastName = "Admin"
}
}

0 comments on commit 0741181

Please sign in to comment.