forked from consuldemocracy/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 1.06 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
33
34
35
36
37
38
language: python
python:
- "3.6"
install:
- sudo apt-get update -y
- sudo apt-get install -y openssh-server
- pip3 install ansible
services: mongodb
before_script:
# Set up host inventory
- echo "localhost ansible_connection=local ansible_user=root" > hosts
# Generate dummy SSH key
- ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
script: ansible-playbook consul.yml -i hosts --extra-vars "env=${RAILS_ENV} domain=localhost errbit=True"
jobs:
include:
- name: Xenial (production)
dist: xenial
env: RAILS_ENV=production
before_install:
- "__rvm_unload; rm -rf ~/.rvm"
- name: Xenial (staging)
dist: xenial
env: RAILS_ENV=staging
before_install:
- "__rvm_unload; rm -rf ~/.rvm"
- name: Bionic (production)
dist: bionic
env: RAILS_ENV=production
before_install:
- rvm get 1.28.0
- "__rvm_unload; rm -rf ~/.rvm"
- name: Bionic (staging)
dist: bionic
env: RAILS_ENV=staging
before_install:
- rvm get 1.28.0
- "__rvm_unload; rm -rf ~/.rvm"