aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2019-04-03 17:23:56 -0600
committerTristan Sloughter <[email protected]>2019-04-03 17:23:56 -0600
commitfc7df7461507fae28ea2402ebe2840bec35c53af (patch)
tree105940c8b4c67213ddedf9f784b1b804bda2f4a4
parent091e7351d8cac31375ddd5268c235715a1511784 (diff)
downloadrelx-fc7df7461507fae28ea2402ebe2840bec35c53af.tar.gz
relx-fc7df7461507fae28ea2402ebe2840bec35c53af.tar.bz2
relx-fc7df7461507fae28ea2402ebe2840bec35c53af.zip
add osx test run
-rw-r--r--.cirrus.yml26
-rw-r--r--rebar.config3
2 files changed, 21 insertions, 8 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index bec8f21..2756823 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -1,9 +1,21 @@
-container:
- image: circleci/erlang:21
-
check_task:
- # rebar3_cache:
- # folder: _build
- # fingerprint_script: cat rebar.lock
- # populate_script: rebar compile
+ container:
+ image: circleci/erlang:21
+ rebar3_cache:
+ folder: _build
+ fingerprint_script: cat rebar.lock
+ populate_script: rebar3 compile --deps_only
+ compile_script: rebar3 compile
test_script: rebar3 ct
+ always:
+ junit_artifacts:
+ path: "_build/test/logs/ct_run.*/junit_report.xml"
+
+osx_check_task:
+ osx_instance:
+ image: mojave-base
+ install_script: brew install erlang
+ test_script: |
+ wget https://s3.amazonaws.com/rebar3/rebar3
+ chmod +x rebar3
+ ./rebar3 ct
diff --git a/rebar.config b/rebar.config
index d7f5312..285b1ce 100644
--- a/rebar.config
+++ b/rebar.config
@@ -69,7 +69,8 @@
{override, providers, [{erl_opts, [no_debug_info]}]}
]}.
-{ct_opts, [{cover_spec, "cover.spec"}]}.
+{ct_opts, [{cover_spec, "cover.spec"},
+ {ct_hooks, [cth_surefire]}]}.
{cover_enabled, true}.
{cover_print_enabled, true}.