Skip to content

Commit

Permalink
Move to Circle CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileoverlord committed Sep 30, 2018
1 parent 034e826 commit 31cdbb4
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 14 deletions.
88 changes: 88 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,88 @@
install_elixir: &install_elixir
run:
name: Install Elixir
command: |
wget https://repo.hex.pm/builds/elixir/v$ELIXIR_VERSION.zip
unzip -d /usr/local/elixir v$ELIXIR_VERSION.zip
echo 'export PATH=/usr/local/elixir/bin:$PATH' >> $BASH_ENV
install_hex_rebar: &install_hex_rebar
run:
name: Install hex and rebar
command: |
mix local.hex --force
mix local.rebar --force
install_system_deps: &install_system_deps
run:
name: Install system dependencies
command: |
apt update
apt install -y unzip astyle libmnl-dev
defaults: &defaults
working_directory: ~/repo

version: 2

jobs:
build_elixir_1_7_otp_21:
docker:
- image: erlang:21.0.5
environment:
ELIXIR_VERSION: 1.7.3-otp-21
LC_ALL: C.UTF-8
SUDO: true
<<: *defaults
steps:
- checkout
- <<: *install_system_deps
- <<: *install_elixir
- <<: *install_hex_rebar
- run: mix deps.get
- run: mix format --check-formatted
- run: mix test
- run: mix docs

build_elixir_1_6_otp_21:
docker:
- image: erlang:21.0.5
environment:
ELIXIR_VERSION: 1.6.6-otp-21
LC_ALL: C.UTF-8
SUDO: true
<<: *defaults
steps:
- checkout
- <<: *install_system_deps
- <<: *install_elixir
- <<: *install_hex_rebar
- run: mix deps.get
- run: mix test

build_elixir_1_6_otp_20:
docker:
- image: erlang:20.3.8
environment:
ELIXIR_VERSION: 1.6.6
LC_ALL: C.UTF-8
SUDO: true
<<: *defaults
steps:
- checkout
- <<: *install_system_deps
- <<: *install_elixir
- <<: *install_hex_rebar
- run: mix deps.get
- run: mix test

workflows:
version: 2
build_test:
jobs:
- build_elixir_1_7_otp_21:
context: org-global
- build_elixir_1_6_otp_21:
context: org-global
- build_elixir_1_6_otp_20:
context: org-global
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
@@ -1,6 +1,6 @@
# nerves_runtime

[![Build Status](https://travis-ci.org/nerves-project/nerves_runtime.svg?branch=master)](https://travis-ci.org/nerves-project/nerves_runtime)
[![CircleCI](https://circleci.com/gh/nerves-project/nerves_runtime.svg?style=svg)](https://circleci.com/gh/nerves-project/nerves_runtime)
[![Hex version](https://img.shields.io/hexpm/v/nerves_runtime.svg "Hex version")](https://hex.pm/packages/nerves_runtime)

`nerves_runtime` is a core component of Nerves. It contains applications and
Expand Down

0 comments on commit 31cdbb4

Please sign in to comment.