ci: add circleci config
This commit is contained in:
parent
ddef1ec515
commit
a459704bb7
|
@ -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
|
Loading…
Reference in New Issue