-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from bgruening/16.01
Merge 16.01 into master
- Loading branch information
Showing
15 changed files
with
398 additions
and
365 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "galaxy/roles/galaxyproject.galaxyextras"] | ||
path = galaxy/roles/galaxyprojectdotorg.galaxyextras | ||
url = https://github.com/galaxyproject/ansible-galaxy-extras | ||
[submodule "galaxy/roles/galaxy-tools-playbook"] | ||
path = galaxy/roles/galaxy-tools-playbook | ||
url = https://github.com/afgane/galaxy-tools-playbook |
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,72 @@ | ||
sudo: required | ||
|
||
language: python | ||
python: 2.7 | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
- TOX_ENV=py27 | ||
|
||
git: | ||
submodules: false | ||
|
||
before_install: | ||
- export GALAXY_TRAVIS_USER=galaxy | ||
- export GALAXY_UID=1450 | ||
- export GALAXY_GID=1450 | ||
- export GALAXY_HOME=/home/galaxy | ||
- export [email protected] | ||
- export [email protected] | ||
- export GALAXY_USER_PASSWD=admin | ||
- export BIOBLEND_GALAXY_API_KEY=admin | ||
- export BIOBLEND_GALAXY_URL=http://localhost:8080 | ||
|
||
- sudo apt-get update -qq | ||
- sudo apt-get install docker-engine --no-install-recommends -y -o Dpkg::Options::="--force-confmiss" -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" | ||
|
||
- docker --version | ||
- docker info | ||
|
||
- git submodule update --init --recursive | ||
- sudo groupadd -r $GALAXY_TRAVIS_USER -g $GALAXY_GID | ||
- sudo useradd -u $GALAXY_UID -r -g $GALAXY_TRAVIS_USER -d $GALAXY_HOME -p travis_testing -c "Galaxy user" $GALAXY_TRAVIS_USER | ||
- sudo mkdir $GALAXY_HOME | ||
- sudo chown -R $GALAXY_TRAVIS_USER:$GALAXY_TRAVIS_USER $GALAXY_HOME | ||
- cd galaxy && docker build -t galaxy-docker/test . | ||
- | | ||
docker run -d -p 8080:80 -p 8021:21 -p 8800:8800 \ | ||
--name galaxy_test_container \ | ||
--privileged=true \ | ||
-e GALAXY_CONFIG_ALLOW_USER_DATASET_PURGE=True \ | ||
-e GALAXY_CONFIG_ALLOW_LIBRARY_PATH_PASTE=True \ | ||
-e GALAXY_CONFIG_ENABLE_USER_DELETION=True \ | ||
-e GALAXY_CONFIG_ENABLE_BETA_WORKFLOW_MODULES=True \ | ||
-v /tmp/:/tmp/ \ | ||
galaxy-docker/test | ||
- docker ps | ||
- cd $GALAXY_HOME | ||
- sudo su $GALAXY_TRAVIS_USER -c 'wget https://github.com/bgruening/bioblend/archive/master.tar.gz' | ||
- sudo su $GALAXY_TRAVIS_USER -c 'tar xfz master.tar.gz' | ||
|
||
install: | ||
- cd $GALAXY_HOME/bioblend-master | ||
- sudo su $GALAXY_TRAVIS_USER -c 'pip install --user --upgrade "tox>=1.8.0" "pep8<=1.6.2" ' | ||
- sudo su $GALAXY_TRAVIS_USER -c 'python setup.py install --user' | ||
# remove flake8 testing for bioblend from tox | ||
- sudo su $GALAXY_TRAVIS_USER -c 'sed -i.bak "s/commands.*$/commands =/" tox.ini' | ||
|
||
script: | ||
- curl --fail $BIOBLEND_GALAXY_URL/api/version | ||
- time > $HOME/time.txt && curl --fail -T $HOME/time.txt ftp://localhost:8021 --user $GALAXY_USER:$GALAXY_USER_PASSWD | ||
- curl --fail ftp://localhost:8021 --user $GALAXY_USER:$GALAXY_USER_PASSWD | ||
# Run bioblend nosetests with the same UID and GID as the galaxy user inside if Docker | ||
# this will guarantee that exchanged files bewteen bioblend and Docker are read & writable from both sides | ||
- sudo -E su $GALAXY_TRAVIS_USER -c "export PATH=$GALAXY_HOME/.local/bin/:$PATH && cd $GALAXY_HOME/bioblend-master && tox -e $TOX_ENV -- -e 'test_download_dataset'" | ||
# Test the 'old' tool installation script | ||
- docker run galaxy-docker/test bash -c 'install-repository "--url https://toolshed.g2.bx.psu.edu -o iuc --name bedtools --panel-section-name 'BEDTools'"' | ||
# Test the 'new' tool installation script | ||
- docker run galaxy-docker/test bash -c "install-tools $GALAXY_HOME/ansible/galaxy-tools-playbook/files/tool_list.yaml" | ||
# Test Docker in Docker, used by Interactive Environments; This needs to be at the end as Docker takes some time to start. | ||
- docker exec -i -t galaxy_test_container docker info |
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.