forked from galaxyproject/ansible-galaxy-extras
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ci_test_galaxykickstart.sh
56 lines (49 loc) · 2.36 KB
/
ci_test_galaxykickstart.sh
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
55
56
#!/usr/bin/env bash
set -e
export GALAXY_USER="[email protected]"
export GALAXY_USER_EMAIL="[email protected]"
export GALAXY_USER_PASSWD="artbio2020"
export GALAXY_HOME=/home/galaxy
export GALAXY_TRAVIS_USER=galaxy
export GALAXY_UID=1450
export GALAXY_GID=1450
export BIOBLEND_GALAXY_API_KEY="artbio2020"
export BIOBLEND_GALAXY_URL=http://127.0.0.1:80
export BIOBLEND_TEST_JOB_TIMEOUT=240
sudo /etc/init.d/postgresql stop
sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
sudo rm -rf /var/lib/postgresql
git clone http://github.com/artbio/galaxykickstart -b newgks $HOME/galaxykickstart
ansible-galaxy install -r $HOME/galaxykickstart/requirements_roles.yml \
-p $HOME/galaxykickstart/roles -f
# remove ansible-galaxy-extras for testing
rm -rf $HOME/galaxykickstart/roles/galaxyprojectdotorg.galaxy-extras/*
cp -r ./* $HOME/galaxykickstart/roles/galaxyprojectdotorg.galaxy-extras/
# install galaxy and user&tools
ansible-playbook -i $HOME/galaxykickstart/inventory_files/galaxy-kickstart $HOME/galaxykickstart/galaxy.yml
sleep 15
ansible-playbook -i $HOME/galaxykickstart/inventory_files/galaxy-kickstart $HOME/galaxykickstart/galaxy_tool_install.yml
sudo supervisorctl status
curl http://localhost:80/api/version| grep version_major
curl --fail $BIOBLEND_GALAXY_URL/api/version
echo "test proftpd"
proftpd --version
date > $HOME/date.txt && curl --fail -T $HOME/date.txt ftp://127.0.0.1:21 --user $GALAXY_USER_EMAIL:$GALAXY_USER_PASSWD
# install bioblend testing, GKS way.
pip --version
sudo rm -f /etc/boto.cfg
pip install --ignore-installed https://github.com/galaxyproject/bioblend/archive/master.zip pytest
chmod a+rx /home/travis/
sudo -E su $GALAXY_TRAVIS_USER -c "source /home/travis/virtualenv/python3.7/bin/activate &&
cd $GALAXY_HOME &&
bioblend-galaxy-tests -v -k 'not download_dataset and \
not download_history and \
not export_and_download and \
not test_show_nonexistent_dataset and \
not test_invocation and \
not test_update_dataset_tags and \
not test_upload_file_contents_with_tags and \
not test_create_local_user and \
not test_update_dataset_datatype and \
not test_show_workflow_versions' /home/travis/virtualenv/python3.7/lib/python3.7/site-packages/bioblend/_tests/TestGalaxy*.py"
cd $TRAVIS_BUILD_DIR