Escaping the Travis environment for unknown packages

This commit is contained in:
Elijah Lazkani 2017-03-04 11:45:16 -05:00
parent 1c96b80fc1
commit 8db8f9b167
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,3 @@
#!/bin/bash
salt-call --local --config=./ --state-output=changes grains.setvals "{ \"user\": \"$(whoami)\", \"group\": \"$(id -g -n $(whoami))\", \"homedir\": \"$HOME\" }"
salt-call --local --config=./ --state-output=changes grains.setvals "{ \"user\": \"$(whoami)\", \"group\": \"$(id -g -n $(whoami))\", \"homedir\": \"$HOME\", \"travis\": True }"

View file

@ -2,9 +2,11 @@ zsh:
pkg.installed:
- name: zsh
{% if grains['travis'] != True %}
zsh-syntax-highlighting:
pkg.installed:
- name: zsh-syntax-highlighting
{% endif %}
{% if grains['kernel'] == 'Darwin' %}
zsh-completions: