-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
41 lines (37 loc) · 1.33 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
32
33
34
35
36
37
38
39
40
41
machine:
node:
version: 6.2.0
environment:
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH"
MIX_ENV: "circleci"
services:
- postgresql
database:
override:
- createdb ci_tests
- echo "CREATE ROLE ci_tests_user WITH UNENCRYPTED PASSWORD 'password' LOGIN CREATEDB;" | psql -U postgres
dependencies:
cache_directories:
- ~/.asdf
- _build
- 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
- echo "erlang ref:OTP-19.0.2" >> .tool-versions
- echo "elixir 1.3.2" >> .tool-versions
- 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}
- yes | mix deps.get
- yes | mix local.rebar
test:
override:
- MIX_ENV=circleci mix coveralls.circle
- mkdir -p $CIRCLE_TEST_REPORTS/junit
- cp _build/test/lib/rumbl/results.xml $CIRCLE_TEST_REPORTS/junit
deployment:
staging:
branch: master
heroku:
appname: frozen-gorge-31484