-
Notifications
You must be signed in to change notification settings - Fork 1
/
travis_test.sh
21 lines (19 loc) · 1001 Bytes
/
travis_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
set -e
echo "$TRAVIS_JOB has been received"
if [[ $TRAVIS_JOB = "docker" ]]; then
echo "Docker connection Checks"
curl --fail ${BIOBLEND_GALAXY_URL}/api/version
date > $HOME/date.txt && curl --fail -T $HOME/date.txt ftp://localhost:21 --user $GALAXY_USER:$GALAXY_USER_PASSWD
sudo -E su $GALAXY_TRAVIS_USER -c "export PATH=$GALAXY_HOME/.local/bin/:$PATH &&
cd $GALAXY_HOME &&
bioblend-galaxy-tests -v $GALAXY_HOME/.local/lib/python2.7/site-packages/bioblend/_tests/TestGalaxy*.py"
fi
if [[ $TRAVIS_JOB = "ansible" ]]; then
echo "Bioblend Testing"
curl --fail ${BIOBLEND_GALAXY_URL}/api/version
date > $HOME/date.txt && curl --fail -T $HOME/date.txt ftp://localhost:21 --user $GALAXY_USER:$GALAXY_USER_PASSWD
sudo -E su $GALAXY_TRAVIS_USER -c "export PATH=$GALAXY_HOME/.local/bin/:$PATH &&
cd $GALAXY_HOME &&
bioblend-galaxy-tests -v $GALAXY_HOME/.local/lib/python2.7/site-packages/bioblend/_tests/TestGalaxy*.py"
fi