forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 961 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
34
35
36
37
38
39
language: erlang
notifications:
email:
irc:
channels:
- "irc.freenode.org#2600hz-dev"
otp_release:
- 18.2
addons:
apt:
packages:
- xsltproc
cache:
directories:
- $HOME/proper
sudo: false
before_install:
- set -e
- if [[ ! -d $HOME/proper/.git/ ]]; then git clone --depth=50 --branch=master https://github.com/manopapad/proper.git $HOME/proper && cd $HOME/proper && make fast; fi
- cd $TRAVIS_BUILD_DIR
script: make compile
after_success:
- if [[ 0 -ne `git status --porcelain -- applications/ core/ | wc -l` ]]; then echo Unstaged changes! && git status --porcelain && exit 1; fi
- make xref
- make build-plt
- git fetch origin master:master
- files="$(git diff --name-only master... | grep -v deps/)" || true
- ./scripts/check-dialyzer.escript $files
- ERL_LIBS="$HOME/proper" make eunit
- ./scripts/check-whitespace.sh core/ applications/