-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
48 lines (42 loc) · 1.68 KB
/
.travis.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
42
43
44
45
46
47
48
language: elixir
elixir:
- 1.8
otp_release:
- 21.3
# matrix:
# exclude:
# - otp_release: 20.3
# elixir: 1.7
services:
- postgresql
addons:
postgresql: "9.5"
cache:
directories:
- _build
- examples/ecto_poll_queue/_build
- examples/ecto_poll_queue/deps
- deps
before_install:
- wget -q https://binaries.cockroachdb.com/cockroach-v2.0.0.linux-amd64.tgz
- tar xvf cockroach-v2.0.0.linux-amd64.tgz
- cd cockroach-v2.0.0.linux-amd64 && nohup ./cockroach start --insecure --host=localhost &
before_script:
- epmd -daemon
- MIX_ENV=test mix compile --warnings-as-errors
- cd examples/ecto_poll_queue && MIX_ENV=cockroach mix do deps.get, compile --warnings-as-errors && cd -
- cd examples/ecto_poll_queue && MIX_ENV=cockroach mix dialyzer --plt && cd -
- cd examples/ecto_poll_queue && MIX_ENV=postgres mix do deps.get, compile --warnings-as-errors && cd -
- cd examples/ecto_poll_queue && MIX_ENV=postgres mix dialyzer --plt && cd -
- MIX_ENV=test mix dialyzer --plt
- cd cockroach-v2.0.0.linux-amd64 && ./cockroach sql --insecure --host=localhost --execute "create database postgres" && cd -
- psql -c 'create database honeydew_test;' -U postgres
# Check for changed files like mix.lock
- git diff --exit-code
script:
- elixir --erl "+C multi_time_warp" -S mix test
- cd examples/ecto_poll_queue && MIX_ENV=cockroach mix do deps.get && cd -
- cd examples/ecto_poll_queue && MIX_ENV=cockroach mix dialyzer --halt-exit-status && cd -
- cd examples/ecto_poll_queue && MIX_ENV=postgres mix do deps.get && cd -
- cd examples/ecto_poll_queue && MIX_ENV=postgres mix dialyzer --halt-exit-status && cd -
- MIX_ENV=test mix dialyzer --halt-exit-status