Classic Docs
Docs Navigation

Elixir Continuous Integration

This document contains information related to projects based on the Ubuntu 14.04 image. If you are using the Ubuntu 18.04 image for your projects, please refer to this page.

If you are using the Ubuntu 14.04 image and you want to switch to Ubuntu 18.04, be sure to check our upgrade guide.

Semaphore makes it easy to setup continuous integration for Elixir projects. After a project is added to Semaphore and the analysis determines that it's written in Elixir, a set of commonly used mix commands will be provided to make the initial setup easier.

mix local.hex --force
mix deps.get
mix test

You can easily change or add more build commands, customize your build environment with configuration files, environment variables and more (see the 'Customizing your build' section for more information).

# CI environment for Elixir projects

The build environment has Erlang and the following Elixir versions pre-installed:

  • 1.0.5
  • 1.1.1
  • 1.3.4
  • 1.4.5
  • 1.5.3
  • 1.6.6
  • 1.7.3

Elixir is part of the PATH so no extra configuration is required. This means that tools like mix are readily available.

Elixir is managed with kiex which means that any version can be installed with Semaphore build commands. The commands below install Elixir version 0.15.1 and mark it as active.

kiex install 0.15.1
kiex use 0.15.1

# Dependency management

Hex dependencies are automatically cached between builds. For caching any other files you can use Semaphore's cache directory.

# Guides

Semaphore Docs are open source — Edit on GitHub


Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2020 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.