forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (36 loc) · 1.22 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
language: erlang
notifications:
email:
- engineering@2600hz.com
- operations@2600hz.com
irc:
channels:
- "irc.freenode.org#2600hz-dev"
otp_release:
- 18.1
- 17.5
- R15B03
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
- if [[ $TRAVIS_OTP_RELEASE =~ ^1 ]]; then ERLC_OPTS="$ERLC_OPTS +nowarn_deprecated_type +nowarn_deprecated_function"; fi
- if [[ $TRAVIS_OTP_RELEASE =~ ^18 ]]; then ERLC_OPTS="$ERLC_OPTS -DOTP_AT_LEAST_18"; fi
script: ERLC_OPTS="$ERLC_OPTS" make compile
after_success:
- if [[ 0 -ne `git status --porcelain -- applications/ core/ deps/ | 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" ERLC_OPTS="$ERLC_OPTS" make eunit
- ./scripts/check-whitespace.sh core/ applications/