Skip to content

Commit

Permalink
init travis script and test playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
eslerm committed Sep 18, 2018
1 parent fa0df02 commit 3e60d58
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
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
15 changes: 15 additions & 0 deletions tests/test_playbook.yml
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

0 comments on commit 3e60d58

Please sign in to comment.