-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
30 lines (27 loc) · 1.95 KB
/
.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
language: node_js
node_js:
- '8'
cache: yarn
git:
depth: 1
notifications:
slack:
secure: V7hKbKUg0W2M0InbQuYVV/f98FnuMpP+a8cvDWkLsyI4fiHwaPhq0toAoRRRd2j2Jp6AFsvvaFEW4QhbZecs9UDvFNnVWgma/mvZSs8VhnqSONcw7eD+e6ITF5H5DsPGKZ0pKR95msOyLC9OB2LL9vVxnF2uQOM0pHavCDDHptHcMjdbcBytTSuWntnRDbQ3jLhJfjzi2bjOmgr64XqEtu/0KjqaokEB4p34N9UmybLtYYrQJ+gy7TjeT1K0BDotSe9DmklCJbW51Jok3kKeNHzgymn3AHMEIo6JGY83GwHllba6SIieYnjrCjrtKtDMcxBXOxM1IGYfAEgZvXZ42SW3xHfVh6xOz/wnV8uoaqm5fpTCjQ2Owv0fOKf4Ru/4FMuX0XyVeEKDyBEtKk1O86s5XEX+m+r9vGTxi4K1I4FUq62/pqwxSeNKfoBlWixQUrHOkIn9/xhasDhAFDGOIqyTlOMAyLtpZTYTX1+XNRgFTbVsNHPlmWUsDX1Sg+h2pd5pQAIUU3pfbzOZI0bjYfSB40VOJCnvffU4PozonTa1rjEB7X1zFHIR1Xvn8Mka/MdbPYzgEmDrhFrXCUsznhhIp4GreYisAIYIo0qLxBhZY/YjPjQJA/3Cc2+xU86cyUp8TRFnnQjhfyq8H24S++Delx+X4H39/vmu87/YVgo=
before_install:
- git clone https://github.com/standardhealth/shr-cli.git
- cd shr-cli/
- yarn
script:
- node . ../spec/ -c ./ig-all/ig-all-r4-config.json -s json-schema > run.log
- cat run.log
- errors_r4=$(grep "errors" run.log | sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g')
- node . ../spec/ --clean -c ./ig-all/ig-all-stu3-config.json -s json-schema > run.log
- cat run.log
- errors_stu3=$(grep "errors" run.log | sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g')
- node . ../spec/ --clean -c ./ig-all/ig-all-dstu2-config.json -s json-schema > run.log
- cat run.log
- errors_dstu2=$(grep "errors" run.log | sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g')
- if [[ "$errors_r4" != "0 errors" ]]; then ( echo There were errors in running shr-cli for ig-all-r4-config.json.); fi
- if [[ "$errors_stu3" != "0 errors" ]]; then ( echo There were errors in running shr-cli for ig-all-stu3-config.json.); fi
- if [[ "$errors_dstu2" != "0 errors" ]]; then ( echo There were errors in running shr-cli for ig-all-dstu2-config.json.); fi
- if [[ "$errors_r4" != "0 errors" ]] || [[ "$errors_stu3" != "0 errors" ]] || [[ "$errors_dstu2" != "0 errors" ]]; then (echo There were errors in running shr-cli. ; exit 1); fi