-
Notifications
You must be signed in to change notification settings - Fork 48
/
.travis.yml
45 lines (45 loc) · 1.92 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
install: 'true'
otp_release:
- 20.0
- 19.3
env:
global:
- REBAR_VSN=3.4.3
- PATH=./rebar3-$REBAR_VSN:$PATH
- ALPACA_VERSION_TO_USE=v0.2.8
- ALPACA_BASE_URL=https://github.com/alpaca-lang/alpaca/releases/download/$ALPACA_VERSION_TO_USE
cache:
directories:
- .rebar3-$REBAR_VSN
- /home/travis/.cache/rebar3
before_install:
- if [ ! -f rebar3-$REBAR_VSN/rebar3 ]; then wget --no-check-certificate https://github.com/erlang/rebar3/archive/$REBAR_VSN.tar.gz;
fi
- if [ -f $REBAR_VSN.tar.gz ]; then tar xvzf $REBAR_VSN.tar.gz; fi
- cd rebar3-$REBAR_VSN
- if [ ! -f ./rebar3 ]; then ./bootstrap; fi
- cd ..
before_script: []
script:
- export ALPACA_BASE=alpaca_${TRAVIS_OTP_RELEASE}
- export ALPACA_PKG=${ALPACA_BASE}.tgz
- export ALPACA_TO_USE=${ALPACA_BASE_URL}/${ALPACA_PKG}
- wget $ALPACA_TO_USE
- tar xvzf $ALPACA_PKG
- export ALPACA_ROOT=`pwd`/alpaca-${ALPACA_VERSION_TO_USE}_${TRAVIS_OTP_RELEASE}
- echo "ALPACA_ROOT is set to ${ALPACA_ROOT}"
- make full_build
- bash ./make-release.sh
before_deploy:
- export RELEASE_ARTIFACT=$(ls alpaca*.tgz)
- echo "Deploying $RELEASE_ARTIFACT to GitHub"
deploy:
provider: releases
api_key:
secure: BAZxkGa98jJ6+JurzaUuGKO9pcuatjh0TMKLxSnYarVrikb9xWnM/wmmn2ajCvTgcl8wYppbQEpcgCJLb6m6ZI9L9ZBksii9ECacp2x2vDrGZ0QBhM/0tg9aHvUAhn7U2FRszqZwGnYlx/7Vb2hZ7Y8S3ojqLuuzturjRjtMkEPhLuLcHEAB/BPiqkdF/b0BRHGvYH2OhIyK4LKejSVL59sSRMzpt9x1c8r9+p6z12IHcsgek0vjQsmUJP3f4bE10FKRQkHBkzIOIqfSMFQ3+Ss/oVhWdHFRq47yfcPHiDAdU3UeVREHjMElRoqi6smJ7YSiyNMGWWS8ZmWjAi+nz/HNM4hdkCwy/GYlyjHjnjZR+fpHAyblHG3cphrpT6sBKZ2I9aC7sjoVIJWd6MShlaI929zKSxnqTzchPc8RL1qHD2vLaTtYiQ0tI7vJ01sCm9X2QpaYMvm46awhEmf3yl4b+Be0vUW/BLNvKBNQzmQ7Q+RaSrkA4USGu4Ilb4mH9jAX3evngJ0zkua/E4bWZ19oD0BJXoui2wzRiNhXJR8VCHVESji9R0Rp6yVhE3Mme0j1ssCMUDbQvBXptKe7HNDIpFcpGgTitWJZKXAE6+wUe8kadeMsU1nVhMkMFrVganrKZvieHIXWLsCYZqseGWOKkDYlaWvezljFbHzpGLU=
file: "${RELEASE_ARTIFACT}"
repo: alpaca-lang/alpaca
skip_cleanup: true
on:
tags: true