From 97f12748ad15064e1667515af47d40c04e5c54c2 Mon Sep 17 00:00:00 2001 From: Dincho Todorov Date: Thu, 14 Feb 2019 15:26:55 +0200 Subject: [PATCH] Initial CircleCI integration (#5) --- .circleci/config.yml | 37 +++++++++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 38 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..e34c31c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,37 @@ +version: 2.1 + +executors: + aebuilder: + docker: + - image: aeternity/builder + user: builder + working_directory: ~/aebytecode + +jobs: + build: + executor: aebuilder + steps: + - checkout + - restore_cache: + keys: + - dialyzer-cache-v1-{{ .Branch }}-{{ .Revision }} + - dialyzer-cache-v1-{{ .Branch }}- + - dialyzer-cache-v1- + - run: + name: Build + command: rebar3 compile + - run: + name: Static Analysis + command: rebar3 dialyzer + - run: + name: Eunit + command: rebar3 eunit + - run: + name: Common Tests + command: rebar3 ct + - save_cache: + key: dialyzer-cache-v1-{{ .Branch }}-{{ .Revision }} + paths: + - _build/default/rebar3_20.3.8_plt + - store_artifacts: + path: _build/test/logs diff --git a/.gitignore b/.gitignore index db21748..318406e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ rel/example_project .concrete/DEV_MODE .rebar aeb_asm_scan.erl +_build/