Commit b7de7e7f authored by Mateusz Gniewkowski's avatar Mateusz Gniewkowski

CI

parent 7022b8a4
image: clarinpl/cpp:latest
stages:
- build
- deploy
build_deb:
stage: build
only:
- master
- develop # delete it after first merge to master
script:
- add-apt-repository -y ppa:deadsnakes/ppa
- apt-get update
- apt-get install -y
python3.6
python3.6-dev
corpus2-python3.6
toki
morfeusz
*morfeusz2*
- mkdir build && cd build
- cmake .. && cmake --build . && cpack
artifacts:
paths:
- build/maca*.deb
expire_in: 1h
push_deb:
stage: deploy
only:
- master
- develop # delete it after first merge to master
script:
- FILE=$(ls build/maca*.deb)
- curl --fail -i -X POST -F "file=@./${FILE}" -u "${APT_USERNAME}:${APT_PASSWORD}" https://apt.clarin-pl.eu/
dependencies:
- build_deb
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment