forked from jmandel/smart-on-fhir-installer
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
33 lines (33 loc) · 905 Bytes
/
.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
# Travis CI configuration file for running tests (from github/edx/configuration)
language: python
python:
- "2.7"
install:
- "sudo apt-get install -y npm python-demjson"
- "pip install --allow-all-external PyYAML==3.11"
- "pip install --allow-all-external demjson"
- "pip install --allow-all-external ansible==1.8.2"
script:
- |
for yml in $(find . -name "*.yml"); do
python -c "import sys,yaml; yaml.load(open(sys.argv[1]))" $yml >/dev/null
if [[ $? -ne 0 ]]; then
echo "ERROR parsing $yml"
exit 1
fi
done
- |
for json in $(find . -name "*.json"); do
jsonlint -v $json
if [[ $? -ne 0 ]]; then
echo "ERROR parsing $json"
exit 1
fi
done
- |
plays="smart-on-fhir-servers"
set -e
cd provisioning
for play in $plays; do
ansible-playbook -i localhost, --syntax-check ${play}.yml
done