forked from thoughtbot/constable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
31 lines (28 loc) · 1.06 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
machine:
environment:
CLIENT_ID: "fake"
CLIENT_SECRET: "fake"
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
pre:
- sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
node:
version: 6.0.0
dependencies:
cache_directories:
- ~/.asdf
- deps
pre:
- if ! asdf | grep version; then git clone https://github.com/HashNuke/asdf.git ~/.asdf; fi
- if ! asdf plugin-list | grep erlang; then asdf plugin-add erlang https://github.com/HashNuke/asdf-erlang.git; fi
- if ! asdf plugin-list | grep elixir; then asdf plugin-add elixir https://github.com/HashNuke/asdf-elixir.git; fi
- erlang_version=$(awk '/erlang/ { print $2 }' .tool-versions) && asdf install erlang ${erlang_version}
- elixir_version=$(awk '/elixir/ { print $2 }' .tool-versions) && asdf install elixir ${elixir_version}
- mix local.rebar --force
- mix local.hex --force
- yes | mix deps.get
- cp .sample.env .env
test:
override:
- mix deps.compile
- mix compile --warnings-as-errors
- mix test