forked from izelnakri/paper_trail
-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
34 lines (32 loc) · 941 Bytes
/
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
32
33
34
machine:
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
MIX_ENV: test
database:
override:
- createdb paper_trail_test
- createdb paper_trail_example_test
- createdb paper_trail_uuid_test
dependencies:
cache_directories:
- ~/.asdf
- deps
- _build
pre:
- if ! asdf | grep version; then git clone https://github.com/asdf-vm/asdf.git ~/.asdf; fi
- asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git || true
- asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git || true
- echo "erlang 19.0" >> .tool-versions
- echo "elixir 1.4.0" >> .tool-versions
- asdf install
- mix local.hex --force
- mix local.rebar --force
override:
- mix deps.get
- mix deps.compile
- cd example && mix deps.get
- cd example && mix deps.compile
test:
override:
- MIX_ENV=test mix test --trace
- cd example && mix test --trace