-
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.
init travis script and test playbook
- Loading branch information
eslerm
committed
Sep 18, 2018
1 parent
fa0df02
commit 3e60d58
Showing
2 changed files
with
45 additions
and
0 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,30 @@ | ||
--- | ||
language: python | ||
python: "2.7" | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- docker --version | ||
- docker info | ||
- 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 775 $GALAXY_HOME | ||
|
||
install: | ||
# Install Ansible. | ||
- pip install ansible | ||
|
||
# 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# 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 |