Skip to content

Instantly share code, notes, and snippets.

Last active November 4, 2018 22:24
  • Star 5 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
I use this to install Elixir on Codeship.
# I use this to install Elixir on our codeship instances for testing. YMMV.
# curl -O
# . ~/
# You can override your Elixir and Erlang versions from your shell when you call ./
# Erlang
echo Installing Erlang version ${ERLANG_VERSION}
curl -O "${ERLANG_VERSION}.tar.gz"
tar zxf OTP-${ERLANG_VERSION}.tar.gz
${ERL_PATH}/Install -minimal ${ERL_PATH}
export PATH="${ERL_PATH}/bin:$PATH"
# Elixir
echo Installing Elixir version ${ELIXIR_VERSION}
curl -O "${ELIXIR_VERSION}.zip"
mkdir ~/elixir-${ELIXIR_VERSION}
EX_PATH=$(realpath ~/elixir-${ELIXIR_VERSION})
cd ${EX_PATH}
unzip -q ../v${ELIXIR_VERSION}.zip
export PATH="${EX_PATH}/bin:$PATH"
mix local.hex --force
mix local.rebar
Copy link

curl -O "${ERLANG_VERSION}.tar.gz"

Then link seems to not work anymore

Copy link

jimsynz commented Feb 24, 2016

Link updated to match the elixir buildpack (which is where I got it in the first place)

Copy link

Seems like realpath is not available on new codeship as of this comment. I'm switching to readlink -f based on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment