mdbx-ci: migrate to Circle-CI 2.0

Change-Id: Id86af9e033d64a4dc2043db33cd8e7ae173feb22
This commit is contained in:
Leo Yuriev 2018-06-21 19:43:43 +03:00
parent bc77ab3cca
commit 40d5db2418
2 changed files with 20 additions and 14 deletions

20
.circleci/config.yml Normal file
View File

@ -0,0 +1,20 @@
version: 2
jobs:
build:
docker:
- image: circleci/buildpack-deps:artful
environment:
- TESTDB: /tmp/test.db
- TESTLOG: /tmp/test.log
steps:
- checkout
- run: make all
- run: ulimit -c unlimited && make check
- run:
command: |
mkdir -p /tmp/artifacts
mv -t /tmp/artifacts $TESTLOG $TESTDB core.*
when: on_fail
- store_artifacts:
path: /tmp/artifacts
destination: test-artifacts

View File

@ -1,14 +0,0 @@
machine:
timezone:
Europe/Moscow
database:
override:
compile:
override:
- make all
test:
override:
- make check || mv test.log ${CIRCLE_ARTIFACTS}/