Skip to content

Instantly share code, notes, and snippets.

@parroty
Last active February 12, 2016 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parroty/7301b13748b486765582 to your computer and use it in GitHub Desktop.
Save parroty/7301b13748b486765582 to your computer and use it in GitHub Desktop.
CircleCI sample
dependencies:
pre:
- bash ./install-otp_src_17.0.sh
- bash ./install-elixir.sh
cache_directories:
- otp_src_17.0
- elixir
test:
pre:
- ln -s ~/circle_sample/otp_src_17.0/bin/erl ~/bin/erl
- ln -s ~/circle_sample/elixir/bin/elixir ~/bin/elixir
- ln -s ~/circle_sample/elixir/bin/elixirc ~/bin/elixirc
- ln -s ~/circle_sample/elixir/bin/mix ~/bin/mix
- ln -s ~/circle_sample/elixir/bin/iex ~/bin/iex
override:
- erl -version
- elixir -v
post:
- MIX_ENV=test mix do deps.get, test
set -x
set -e
export PATH=`pwd`/otp_src_17.0/bin:$PATH
if [ ! -e elixir/bin/elixir ]; then
git clone https://github.com/elixir-lang/elixir
cd elixir
make;
fi
set -x
set -e
if [ ! -e otp_src_17.0/bin/erl ]; then
curl -O http://www.erlang.org/download/otp_src_17.0.tar.gz
tar xzf otp_src_17.0.tar.gz
cd otp_src_17.0
./configure --enable-smp-support \
--enable-m64-build \
--disable-native-libs \
--disable-sctp \
--enable-threads \
--enable-kernel-poll \
--disable-hipe \
--without-javac
make;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment