Skip to content

Commit 175f092

Browse files
authored
Merge pull request #9 from j14159/add-travis
Add travis ci config for building with OTP 19.3 and 20.0
2 parents e534fe0 + c98ad39 commit 175f092

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: erlang
2+
install: 'true'
3+
otp_release:
4+
- 20.0
5+
- 19.3
6+
env:
7+
global:
8+
- REBAR_VSN=3.4.3
9+
- PATH=./rebar3-$REBAR_VSN:$PATH
10+
- ALPACA_VERSION_TO_USE=v0.2.8
11+
- ALPACA_BASE_URL=https://github.com/alpaca-lang/alpaca/releases/download/$ALPACA_VERSION_TO_USE
12+
cache:
13+
directories:
14+
- .rebar3-$REBAR_VSN
15+
- /home/travis/.cache/rebar3
16+
before_install:
17+
- if [ ! -f rebar3-$REBAR_VSN/rebar3 ]; then wget --no-check-certificate https://github.com/erlang/rebar3/archive/$REBAR_VSN.tar.gz; fi
18+
- if [ -f $REBAR_VSN.tar.gz ]; then tar xvzf $REBAR_VSN.tar.gz; fi
19+
- cd rebar3-$REBAR_VSN
20+
- if [ ! -f ./rebar3 ]; then ./bootstrap; fi
21+
- cd ..
22+
script:
23+
- export ALPACA_BASE=alpaca_${TRAVIS_OTP_RELEASE}
24+
- export ALPACA_PKG=${ALPACA_BASE}.tgz
25+
- export ALPACA_TO_USE=${ALPACA_BASE_URL}/${ALPACA_PKG}
26+
- wget $ALPACA_TO_USE
27+
- tar xvzf $ALPACA_PKG
28+
- export ALPACA_ROOT=`pwd`/alpaca-${ALPACA_VERSION_TO_USE}_${TRAVIS_OTP_RELEASE}
29+
- echo "ALPACA_ROOT is set to ${ALPACA_ROOT}"
30+
- rebar3 compile
31+
- rebar3 eunit
32+
- rebar3 eunit

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
# alpaca_lib
1+
# alpaca_lib
2+
[![Build Status](https://travis-ci.org/alpaca-lang/alpaca_lib.svg?branch=master)](https://travis-ci.org/alpaca-lang/alpaca_lib)

0 commit comments

Comments
 (0)