forked from dcos/lashup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
45 lines (44 loc) · 1.32 KB
/
circle.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
machine:
pre:
- echo "127.0.0.1 $(uname -n|cut -f1 -d.) $(uname -n) localhost" | sudo tee /etc/hosts
environment:
PATH: ${HOME}/extras/bin:${HOME}/extras/otp/19.1/bin:${PATH}
dependencies:
cache_directories:
- ~/extras
- ~/.dialyzer_core*
- ~/.rebar
- .rebar
- .cache
- ~/.cache
pre:
- sudo service mongodb stop
- sudo service rabbitmq-server stop
- sudo service couchdb stop
- sudo service zookeeper stop
- sudo service mysql stop
- sudo service postgresql stop
- sudo service redis-server stop
- curl -O -L https://raw.githubusercontent.com/yrashk/kerl/master/kerl && chmod 755 kerl
- if [ ! -d ~/extras/otp/19.1 ]; then ./kerl build 19.1 19.1; ./kerl install 19.1 ~/extras/otp/19.1; fi:
timeout: 1800
- ./rebar3 update
test:
override:
- ./rebar3 compile
- ./rebar3 ct --readable=false
- ./rebar3 eunit
- ./rebar3 xref
- ./rebar3 dialyzer
- ./elvis rock
- ./rebar3 edoc
- ./rebar3 cover
post:
- ./rebar3 covertool generate
- sudo pip install codecov
- mkdir -p $CIRCLE_TEST_REPORTS/
- mv TEST-*.xml $CIRCLE_TEST_REPORTS
- mkdir -p $CIRCLE_ARTIFACTS
- codecov -X gcov -f _build/test/covertool/lashup.covertool.xml
- cp -r _build/test/cover $CIRCLE_TEST_REPORTS
- cp -r doc $CIRCLE_ARTIFACTS