From fc7df7461507fae28ea2402ebe2840bec35c53af Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 3 Apr 2019 17:23:56 -0600 Subject: add osx test run --- .cirrus.yml | 26 +++++++++++++++++++------- rebar.config | 3 ++- 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}. -- cgit v1.2.3