forked from loot/falloutnv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
22 lines (21 loc) · 843 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
language: ruby
rvm: 2.1.1
install: gem install kwalify
before_install: wget https://loot.github.io/masterlist.schema.yaml
script:
### Check for basic coding style, but failure here won't fail the build.
- echo "Basic code-style checks."
- 'grep --line-number --basic-regexp "name: [^'']" masterlist.yaml || true'
### Check masterlist against the Kwalify schema
- echo "Test against Kwalify schema."
- kwalify -f masterlist.schema.yaml masterlist.yaml
# The below is a hack as `kwalify` doesn't return with a non-zero exist code
# when the "kwalification" fails, so this forces an error if there are any
# errors in the file being validated.
- return $(kwalify -q -f masterlist.schema.yaml masterlist.yaml|wc -l)
notifications:
irc:
channels:
- "chat.freenode.net#loot"
use_notice: true
skip_join: true