Skip to content

Commit

Permalink
Test against SaltStack Dockerized in Travis
Browse files Browse the repository at this point in the history
Inspired by issue SUSE#108, I changed Travis config
to launch a salt-master (+ salt-api) 
container and two salt-minion(s).

Salt-api is available at localhost:8000 during 
tests phase.

For more informations about the containers,
see docker/README.md
  • Loading branch information
mbologna committed Sep 24, 2018
1 parent 0ca1be9 commit 9340f1e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
sudo: required
language: java
jdk:
- oraclejdk8
- oraclejdk9

services:
- docker

before_install:
- docker pull mbologna/saltstack-master
- docker pull mbologna/saltstack-minion
- docker run -d --name saltmaster -v `pwd`/docker/etc_master/salt:/etc/salt -p 8000:8000 mbologna/saltstack-master
- docker run -d --name saltminion1 --link saltmaster -v `pwd`/docker/etc_minion1/salt:/etc/salt mbologna/saltstack-minion
- docker run -d --name saltminion2 --link saltmaster -v `pwd`/docker/etc_minion2/salt:/etc/salt mbologna/saltstack-minion
- docker ps -a
- docker exec saltmaster /bin/sh -c "sleep 30; salt '*' test.ping"

install: /bin/true
script: mvn checkstyle:check javadoc:javadoc test package
deploy:
Expand All @@ -19,4 +33,3 @@ after_success:
env:
global:
- secure: XvflMMZoyQSbsCdOD98rFxsEvd+c9aNUulPf0IIKpp6OFcl0lEoq6c4cEd0C/qBtlZgBNTYmnWfOpWcrNZABa2PXAbi0p9lw/5/L9UgnlEfWG0NbVbJ/arb2DidgnidvVT5GhNNn31/38zwVcJVyo3yjRmf72ZwPbZKWGygKkjc=
sudo: false

0 comments on commit 9340f1e

Please sign in to comment.