Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 1.03 KB

testing.md

File metadata and controls

50 lines (39 loc) · 1.03 KB

I propose to use this procedure:

https://www.ansible.com/blog/testing-ansible-roles-with-docker

Please see the travis file in https://github.com/openearth-stack/postgresql/blob/master/.travis.yml as an example.

Test setup

Install Ubuntu 16.06 SERVER

install docker

 sudo apt-get update
 sudo apt-get install docker.io

How to run travis yml locallly

http://stackoverflow.com/questions/21053657/how-to-run-travis-ci-locally

lid worden van de dockergroep

vigr

Add username to docker:

docker:x:117:USERNAME

create shadow group

vigr -s

open new terminal

select an image from Quay.io. If you're not using a language-specific image pick travis-ruby. Open a terminal and start an interactive Docker session using the image URL:

docker run -it quay.io/travisci/travis-ruby /bin/bash

Switch to the travis user:

sudo su travis

Git clone repositories (e.g.):

 cd ~/builds/
 git clone https://github.com/openearth-stack/postgresql.git
 git clone https://github.com/openearth-stack/general.git