Skip to content

Commit

Permalink
Set kerl build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
codeadict committed Jan 21, 2020
1 parent cb7594a commit a058bab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: erlang

env:
global:
- KERL_DEFAULT_INSTALL_DIR="$HOME/.kerl/installs"

addons:
apt:
packages:
Expand Down Expand Up @@ -38,13 +42,12 @@ jobs:
env: OTP_VERSION=22.0

install:
- if [ $TRAVIS_OS_NAME == osx ] ; then brew install kerl || true ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then kerl update releases ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then kerl list builds | grep ${OTP_VERSION} || travis_wait 45 kerl build ${OTP_VERSION} ${OTP_VERSION} ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then kerl list installations | grep install_${OTP_VERSION} || kerl install ${OTP_VERSION} install_${OTP_VERSION} ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then kerl install ${OTP_VERSION} ; fi

before_script:
- if [ $TRAVIS_OS_NAME == osx ] ; then ls -al $(kerl path install_${OTP_VERSION}) ; fi
- if [ $TRAVIS_OS_NAME == osx ] ; then ls -al $HOME/.kerl/installs/${OTP_VERSION} ; fi
- wget https://s3.amazonaws.com/rebar3/rebar3 && chmod u+x rebar3
- ./rebar3 update

Expand Down

0 comments on commit a058bab

Please sign in to comment.