Skip to content

Commit 7db5e73

Browse files
author
Ivan Dlugos
committed
gitlab-ci build job
1 parent 2734adb commit 7db5e73

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
build:
2+
image: python:latest
3+
script:
4+
# a function to download a library from another Gitlab repo's CI artifacts
5+
- 'download_library(){ curl --create-dirs -o objectbox/lib/$1 -H "PRIVATE-TOKEN: $CI_API_TOKEN" $2; }'
6+
- 'download_library x86_64/libobjectbox.so "${OBXLIB_URL_Linux64}"'
7+
- 'download_library x86_64/libobjectbox.dylib "${OBXLIB_URL_Mac64}"'
8+
- 'download_library armv7l/libobjectbox.so "${OBXLIB_URL_LinuxARMv7hf}"'
9+
- pip install virtualenv
10+
- make test
11+
- make build
12+
artifacts:
13+
expire_in: 1 days
14+
paths:
15+
- dist/*.whl

0 commit comments

Comments
 (0)