From e58dd45f1ce122ea780583e1c5a4a63b6b1e46c6 Mon Sep 17 00:00:00 2001 From: infactum Date: Thu, 4 Oct 2018 12:25:40 +0500 Subject: [PATCH] ci --- appveyor.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..c2fe78f --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,43 @@ +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: >- + docker run --rm -v $(pwd):/src $DOCKER_IMAGE /bin/bash -c " + mkdir build && cd build; + cmake -DCMAKE_BUILD_TYPE=Release /src; + cmake --build .; + cp tg2sip /src; + cp gen_db /src;" + chmod +x tg2sip; + chmod +x gen_db; + 7z a tg2sip.zip tg2sip gen_db settings.ini + +after_build: + - sh: docker push $DOCKER_IMAGE + +artifacts: + - path: tg2sip.zip + name: TG2SIP Ubuntu Bionic \ No newline at end of file