Docs Navigation

Elixir Continuous Integration

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 custom 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.2.6
  • 1.3.4
  • 1.4.5
  • 1.5.1

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

Newsletter

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

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