Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@schnittchen
Last active January 30, 2017 05:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schnittchen/3aed74cfa7b2bd3c1df0 to your computer and use it in GitHub Desktop.
Save schnittchen/3aed74cfa7b2bd3c1df0 to your computer and use it in GitHub Desktop.
#!/bin/bash
source ~/.bash_profile
set -e
set -x
if [ -f ~/evm ]; then
echo evm found
else
rm -rf evm
git clone https://github.com/robisonsantos/evm.git
cp evm/evm ~/
fi
. ~/evm
evm install $ERLANG_VERSION -y
evm use $ERLANG_VERSION
mkdir -p ~/.kiex/bin/
curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/kiex > ~/.kiex/bin/kiex
chmod +x ~/.kiex/bin/kiex
if [ -f ~/.kiex/scripts/kiex ]; then
. ~/.kiex/scripts/kiex
kiex selfupdate
else
mkdir -p ~/.kiex/bin/
curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/kiex > ~/.kiex/bin/kiex
chmod +x ~/.kiex/bin/kiex
~/.kiex/bin/kiex setup
. ~/.kiex/scripts/kiex
fi
kiex install $ELIXIR_VERSION
kiex use $ELIXIR_VERSION
mix local.hex --force
mix local.rebar --force
if [ -d dialyxir ]; then
git -C dialyxir pull
else
git clone https://github.com/jeremyjh/dialyxir.git
fi
cd dialyxir
mix archive.build
mix archive.install --force # don't ask for confirmation
mix dialyzer.plt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment