Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
034e826
commit 31cdbb4
Showing
3 changed files
with
89 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters