-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 1.17 KB
/
.travis.yml
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
---
# Doesn't use containers yet, so we need to reproduce the container.
language: bash
before_install:
- echo $PWD
# We need to install Ansible
- sudo apt-get clean all && sudo apt-get -y update
- sudo apt-get install -y python-yaml python-jinja2 python-httplib2 python-keyczar python-paramiko python-setuptools git python-pip
- sudo mkdir /etc/ansible/
- echo $'[local]\nlocalhost\n' | sudo tee --append /etc/ansible/hosts
- sudo mkdir /opt/ansible/
- sudo git clone --recursive https://github.com/ansible/ansible.git /opt/ansible/ansible
- cd /opt/ansible/ansible
- sudo git submodule update --init
env:
- PATH=/opt/ansible/ansible/bin:/bin:/usr/bin:/sbin:/usr/sbin:$PATH PYTHONPATH=/opt/ansible/ansible/lib:$PYTHONPATH ANSIBLE_LIBRARY=/opt/ansible/ansible/library
install:
- echo "$PWD" ; ls
- echo $TRAVIS_BUILD_DIR
- cd $TRAVIS_BUILD_DIR/../
- cp $TRAVIS_BUILD_DIR/zenodo.yml .
- mkdir -p roles
- mv zenodo-docker-role roles/
# We have to put all this stuff in the "roles" directory
- ansible-playbook -c local zenodo.yml
notifications:
email:
recipients:
- brucellino@gmail.com
slack:
rooms:
- africa-arabia-roc:8bySc6HbbEvvxPYqg0Z56Xdk#appdevops