-
Notifications
You must be signed in to change notification settings - Fork 75
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 #38 from eslerm/travis
Travis-CI
- Loading branch information
Showing
4 changed files
with
49 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
language: python | ||
python: "2.7" | ||
sudo: required | ||
|
||
before_install: | ||
- export GALAXY_HOME=/home/galaxy | ||
- export GALAXY_TRAVIS_USER=galaxy | ||
- export GALAXY_UID=1450 | ||
- export GALAXY_GID=1450 | ||
- 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 | ||
- sudo chmod -R 755 $GALAXY_HOME | ||
|
||
install: | ||
# Install an upgraded pip and virtualenv | ||
- sudo apt-get install git | ||
- sudo apt-get install python-pip | ||
- pip install virtualenv | ||
- pip install --upgrade pip | ||
|
||
# Install Ansible. | ||
- pip install ansible==2.4 | ||
|
||
# Add ansible.cfg to pick up roles path. | ||
- printf '[defaults]\nroles_path = ../' > ansible.cfg | ||
|
||
script: | ||
- ansible-playbook -i "localhost, " -c local tests/test_playbook.yml |
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
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,16 @@ | ||
--- | ||
# Travis CI test playbook | ||
|
||
- hosts: localhost | ||
gather_facts: False | ||
connection: local | ||
remote_user: travis | ||
vars: | ||
galaxy_commit_id: release_18.05 | ||
galaxy_manage_clone: yes | ||
galaxy_manage_download: no | ||
galaxy_server_dir: /home/galaxy/server | ||
galaxy_config_style: yaml | ||
roles: | ||
- role: ansible-galaxy | ||
become: yes |