forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 1.14 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
language: erlang
notifications:
email:
irc:
channels:
- "irc.freenode.org#2600hz-dev"
otp_release:
- 18.2
addons:
apt:
packages:
- xsltproc
cache:
apt: true
directories:
- $HOME/proper
- $TRAVIS_BUILD_DIR/deps
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
- git fetch origin master:master
- files="$(git diff --name-only master... -- application/ core/)" || true && echo $files
- make build-plt
- ./scripts/check-dialyzer.escript .kazoo.plt $files
- make build-release
- # ERL_LIBS="$HOME/proper" ERLC_OPTS='-DPROPER' make compile-test
- # ERL_LIBS="$HOME/proper" make eunit
- make compile-test
- make eunit
- ./scripts/check-whitespace.sh core/ applications/