<commit_before>sudo: required
services:
  - docker

before_install:
  - docker pull bbinet/salt-minion:wheezy
  - docker pull bbinet/salt-master

install:
  - cp test/top.sls .
  - docker run -d --name salt-master -v $PWD:/data -v $PWD/test/config:/config bbinet/salt-master
  - docker run -d --name consul-server01 -h consul-server01 --link salt-master:salt bbinet/salt-minion:wheezy
  - docker run -d --name servicehost01 -h servicehost01 --link salt-master:salt bbinet/salt-minion:wheezy
  - sleep 10
  - docker ps
  - sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' salt-master)" -- salt-key -L
  - sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' salt-master)" -- salt-key -Ay
  #- docker exec salt-master salt-key -L
  #- docker exec salt-master salt-key -Ay

script:
  - sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' consul-server01)" -- salt-call --retcode-passthrough state.highstate test=True
  - sudo lxc-attach -n "$(docker inspect --format '{{.Id}}' servicehost01)" -- salt-call --retcode-passthrough state.highstate test=True
  #- docker exec consul-server01 salt-call --retcode-passthrough state.highstate test=True
  #- docker exec servicehost01 salt-call --retcode-passthrough state.highstate test=True<commit_msg>Revert "Use lxc-attach instead of "docker exec""<commit_after>sudo: required
services:
  - docker

before_install:
  - docker pull bbinet/salt-minion:wheezy
  - docker pull bbinet/salt-master

install:
  - cp test/top.sls .
  - docker run -d --name salt-master -v $PWD:/data -v $PWD/test/config:/config bbinet/salt-master
  - docker run -d --name consul-server01 -h consul-server01 --link salt-master:salt bbinet/salt-minion:wheezy
  - docker run -d --name servicehost01 -h servicehost01 --link salt-master:salt bbinet/salt-minion:wheezy
  - sleep 10
  - docker ps
  - docker exec salt-master salt-key -L
  - docker exec salt-master salt-key -Ay

script:
  - docker exec consul-server01 salt-call --retcode-passthrough state.highstate test=True
  - docker exec servicehost01 salt-call --retcode-passthrough state.highstate test=True
{'fraction_non_alphanumeric': 0.13409961685823754, 'fraction_numerical': 0.01532567049808429, 'mean_word_length': 3.3072164948453606, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1111175', 'n_tokens_mistral': 797, 'n_tokens_neox': 716, 'n_words': 195}