diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..dbe0a12 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,66 @@ +version: 2.1 + +orbs: + rebar3: tsloughter/rebar3@0.5.1 + +commands: + upload: + # parameters: + # token: + # description: The API token to use for uploading to Codecov. + # type: string + # default: $CODECOV_TOKEN + # path: + # description: Path to the code coverage data file to upload. + # type: string + # steps: + # - run: + # name: Upload Coverage Results + # command: | + # apk add --no-cache curl + # curl --request POST --retry 3 --silent --show-error --fail \ + # --data-binary @<< parameters.path >> \ + # "https://codecov.io/upload/v2?service=circleci\ + # &token=<< parameters.token >>\ + # &commit=$CIRCLE_SHA1\ + # &branch=$CIRCLE_BRANCH\ + # &build=$CIRCLE_BUILD_NUM\ + # &job=$CIRCLE_NODE_INDEX\ + # &build_url=$CIRCLE_BUILD_URL\ + # &slug=$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME\ + # &pr=$CIRCLE_PR_NUMBER" +# jobs: +# codecov: + # executor: rebar3/erlang + # steps: + # - rebar3/install_ca_certs + # - checkout + # - attach_workspace: + # at: ~/project/ + # - run: + # command: | + # rebar3 covertool generate + # - upload: + # path: ~/project/_build/test/covertool/grpcbox.covertool.xml + +workflows: + version: 2.1 + build_and_test: + jobs: + - rebar3/compile + - rebar3/xref: + requires: + - rebar3/compile + - rebar3/dialyzer: + requires: + - rebar3/compile + - rebar3/ct: + requires: + - rebar3/compile +# - rebar3/cover: +# requires: +# - rebar3/ct +# - codecov: +# requires: +# - rebar3/cover + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 70e5541..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: erlang -matrix: - include: - - os: linux - otp_release: 20.0 -script: - - "rebar3 do xref, ct, dialyzer" -branches: - only: - - master -cache: - directories: - - "$HOME/.cache/rebar3/hex/default" diff --git a/README.org b/README.org index d1e97c0..75a8087 100644 --- a/README.org +++ b/README.org @@ -1,6 +1,6 @@ #+TITLE: VRRM: just enough consensus -[[https://travis-ci.org/evanmcc/vrrm.svg?branch=master]] +[![CircleCI](https://circleci.com/gh/evanmcc/vrrm.svg?style=svg)](https://circleci.com/gh/evanmcc/vrrm) * DISCLAIMER calling this research quality code is an insult to research quality