ci: add circleci config

This commit is contained in:
Boris Faure 2018-12-22 15:46:20 +01:00
parent ddef1ec515
commit a459704bb7
1 changed files with 24 additions and 0 deletions

24
.circleci/config.yml Normal file
View File

@ -0,0 +1,24 @@
version: 2
jobs:
build:
docker:
- image: borisfaure/terminology-ci:0.1
steps:
- run: |
cd /terminology
git pull --ff-only
if [ -n "$CIRCLE_PR_NUMBER" ]; then
git fetch origin pull/$CIRCLE_PR_NUMBER/head
fi
if [ -n "$CIRCLE_SHA1" ]; then
git reset --hard origin/master
else
git reset --hard $CIRCLE_SHA1
fi
- run: |
cd /terminology
meson . build
meson configure build
cd build
ninja
path: /terminology