Erlang

Solano CI supports testing Erlang and Elixir applications. See Hello Phoenix as one of our our Example Repositories page. Contact support@solanolabs.com with any questions about Erlang support.

Supported Versions

Solano CI supports several versions of Erlang:

  • 19.0
  • 18.3
  • 18.2.1
  • 18.1
  • system (currently R14B04)

If a version of Erlang is not specified in your configuration, R14B04 will be be on the path. To set a specific version of erlang, add the following to solano.yml:

erlang:
  version: '19.0'

Elixir

While Elixir is not natively installed on Solano CI workers, installing it can be easily performed in a pre_setup setup hook with code like the following:

if [ ! -f ~/usercache/elixir-1.3.2.zip ]; then
  mkdir -p ~/usercache && \
  curl -L -o ~/usercache/elixir-1.3.2.zip https://github.com/elixir-lang/elixir/releases/download/v1.3.2/Precompiled.zip
fi
# Install elixir into $HOME/bin since it is early in $PATH
(cd ~/usercache && unzip -o elixir-1.3.2.zip && rsync -av bin ~/ && rsync -av lib ~/)

For elixir projects, the dependency cache should be customized to include appropriate key_paths and save_paths in your solano.yml:

cache:
  key_paths:
    - mix.exs
    - mix.lock
  save_paths:
    - deps
    - HOME/.mix