Created
January 11, 2016 22:16
-
-
Save olivermt/ee17d2af32f1ea81a3a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
#We need to purge the erlang already on the box, since its version 14. | |
sudo apt-get update | |
sudo apt-get purge erlang-base-hipe | |
sudo apt-get purge erlang-base | |
#This lib is required for esl-erlang | |
sudo apt-get install libwxbase2.8-0 | |
if [ ! -e ~/dependencies/ ]; then | |
mkdir ~/dependencies | |
fi | |
if [ ! -e ~/dependencies/esl-erlang_18.2-1~ubuntu~precise_amd64.deb ]; then | |
wget -O ~/dependencies/esl-erlang_18.2-1~ubuntu~precise_amd64.deb http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.2-1~ubuntu~precise_amd64.deb | |
fi | |
if [ ! -e ~/dependencies/elixir_1.1.1-2~ubuntu~trusty_amd64.deb ]; then | |
wget -O ~/dependencies/elixir_1.1.1-2~ubuntu~trusty_amd64.deb https://packages.erlang-solutions.com/ubuntu/pool/elixir_1.1.1-2~ubuntu~trusty_amd64.deb | |
fi | |
sudo dpkg -i ~/dependencies/esl-erlang_17.5.3-1~ubuntu~precise_amd64.deb | |
sudo dpkg -i ~/dependencies/elixir_1.1.1-2~ubuntu~trusty_amd64.deb | |
# Fetch and compile dependencies and application code (and include testing tools) | |
export MIX_ENV="test" | |
cd $HOME/$CIRCLE_PROJECT_REPONAME | |
mix local.hex --force | |
mix local.rebar --force | |
mix do deps.get, deps.compile, compile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment