2018-10-04 07:25:40 +00:00
|
|
|
version: 1.0.0+{build}
|
|
|
|
|
|
|
|
image:
|
|
|
|
- Ubuntu
|
|
|
|
|
|
|
|
configuration: Release
|
|
|
|
|
|
|
|
platform: x64
|
|
|
|
|
|
|
|
environment:
|
|
|
|
DOCKER_LOGIN: infactum
|
|
|
|
DOCKER_PASSWORD:
|
|
|
|
secure: wWPsUiEtw8rfnjX2/Y3/AA==
|
|
|
|
DOCKER_IMAGE: infactum/tg2sip-builder
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- TARGET_PLATFORM: x64
|
|
|
|
|
|
|
|
init:
|
|
|
|
- sh: |
|
|
|
|
docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
|
|
|
|
docker pull $DOCKER_IMAGE
|
|
|
|
install:
|
|
|
|
- sh: docker build buildenv/ --cache-from $DOCKER_IMAGE -t $DOCKER_IMAGE:latest
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- sh: >-
|
2018-10-04 08:46:25 +00:00
|
|
|
mkdir build;
|
2018-10-04 07:25:40 +00:00
|
|
|
docker run --rm -v $(pwd):/src $DOCKER_IMAGE /bin/bash -c "
|
|
|
|
mkdir build && cd build;
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release /src;
|
|
|
|
cmake --build .;
|
2018-10-04 08:46:25 +00:00
|
|
|
chmod +x tg2sip;
|
|
|
|
chmod +x gen_db;
|
|
|
|
cp tg2sip /src/build;
|
|
|
|
cp gen_db /src/build;"
|
2018-10-04 08:55:50 +00:00
|
|
|
7z a tg2sip.zip ./build/tg2sip ./build/gen_db ./settings.ini;
|
2018-10-04 07:25:40 +00:00
|
|
|
|
|
|
|
after_build:
|
|
|
|
- sh: docker push $DOCKER_IMAGE
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: tg2sip.zip
|
|
|
|
name: TG2SIP Ubuntu Bionic
|