This repository has been archived by the owner on Jul 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
54 lines (49 loc) · 2.15 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: bash
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
jobs:
include:
- stage: test
name: "Shell Syntax-Check"
env:
- TESTENV=shellcheck
- TESTCOMMAND="find $TRAVIS_BUILD_DIR -name '*.sh' -type f -print0 | xargs -0 -n1 -t shellcheck"
- SHELLCHECK_OPTS="-s bash"
before_install:
- echo $TESTCOMMAND
- shellcheck --version
- stage: test
name: "Template JSON Syntax-Check"
env:
- TESTENV=json-tool
- TESTCOMMAND="find $TRAVIS_BUILD_DIR -name '*.json' -type f -print0 | xargs -0 -n1 -I {} -t jq --exit-status . {} > /dev/null"
install:
# Download json parser
- curl -sO http://stedolan.github.io/jq/download/linux64/jq
- chmod +x $PWD/jq
- stage: test
name: "Template CFn Syntax-Check"
language: python
python: 3.6
env:
- TESTENV=cfn-lint
# E1029: Because it chokes on BASH vars in 'content' blocks
# E2015: Because can't identify why it's failing on the test (relevant content is valid)
- TESTCOMMAND="find $TRAVIS_BUILD_DIR -name '*.json' -type f -print0 | xargs -0 -n1 -I {} -t cfn-lint -i E1029,E2015 -t {} > /dev/null"
install:
- pip install cfn-lint
script:
- bash -c "$TESTCOMMAND"
stages:
- test
notifications:
email:
on_success: never
on_failure: always
slack:
rooms:
- secure: AYnO2M3Dp9DwSMmNXwBk8ESpMz6NdtsIjmmZ4hax9xt1M1/FbRll7U5glBFQ7aOVV6Il4QdlaARtkgEdfI9px3qehK5ZcuqE8PieBMDab3orVcHuoY866YZxvbPNMvTny5aRndxYpN2YbOpv8+3Lhat7+t2xlpwV7qIL7AT01Ix+Qd5Vy2YUgzEULwrNEOkzwIVfge7X84ar93nlDvQ4SX9WeL6695wETghKe4okEOyLHIqUSWnqM1pg4qJOXnSU9NkqZwZWqtnyjG2UQXN4TxenCsL7UDLIYx14cP1E6fvchK0jgq4y9v80heFq603s9R23a+gX6j8Wyj0jU6gThiNE2p9aqBrDv5cjijIN7Eo7cTPyy0wJmhIiHZmGpzHzx3ZNBmV+a/qIDRV7wzCC/JScO+na1FRrcQWsndmk6kPLLTXIIHbUAWgJF5eVWi9RXY39uN8LHPgCIFpTJtZIWl7RmR5m7ZDpq1OyiDsd4BFgXQ556Hk7t+DCQspz3uYRsWdzyRHArtOp+FF+4JAm3Mq2qDrj1UfdNGC3BJmUMgIuWuZyt5wYfJT+gWe0W9cwpJ6B7AG8l4P+Uk56UB5yO5jVd0EEcjpXkfSPpoF8Dpm02bJeppSFtpvYcO40NWPPizDdIdoF1oVYagTcqorFywZ2a2pGpocrCwJAkNj89xY="
on_success: never
on_failure: always