From 6ab778443af0b76e934b3b93d2e3627d3443aea5 Mon Sep 17 00:00:00 2001 From: infactum Date: Thu, 4 Oct 2018 13:46:25 +0500 Subject: [PATCH] ci --- CMakeLists.txt | 0 Dockerfile | 0 README.md | 4 +++- appveyor.yml | 11 ++++++----- settings.ini | 0 5 files changed, 9 insertions(+), 6 deletions(-) mode change 100755 => 100644 CMakeLists.txt mode change 100755 => 100644 Dockerfile mode change 100755 => 100644 settings.ini diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100755 new mode 100644 diff --git a/Dockerfile b/Dockerfile old mode 100755 new mode 100644 diff --git a/README.md b/README.md index 4d8df38..262c00a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build status](https://ci.appveyor.com/api/projects/status/4dnph34apvfy6vft?svg=true)](https://ci.appveyor.com/project/Infactum/tg2sip) + # TG2SIP TG2SIP is a Telegram<->SIP voice gateway. It can be used to forward incoming telegram calls to your SIP PBX or make SIP->Telegram calls. @@ -8,7 +10,7 @@ Your SIP PBX should be comaptible with `L16@48000` or `OPUS@48000` voice codec. ## Usage -1. Download prebuild version from CI or compile it yourself. +1. [Download](https://ci.appveyor.com/api/projects/Infactum/tg2sip/artifacts/tg2sip.zip?branch=master) prebuild version from CI or compile it yourself. 2. Obtain `api_id` and `api_hash` tokens from [this](https://my.telegram.org) page and put them in `settings.ini` file. 3. Login into telegram with `gen_db` app 4. Set SIP server settings in `settings.ini` diff --git a/appveyor.yml b/appveyor.yml index c2fe78f..17c30ce 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,15 +25,16 @@ install: build_script: - sh: >- + mkdir build; 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 + chmod +x tg2sip; + chmod +x gen_db; + cp tg2sip /src/build; + cp gen_db /src/build;" + 7z a tg2sip.zip build/tg2sip build/gen_db settings.ini; after_build: - sh: docker push $DOCKER_IMAGE diff --git a/settings.ini b/settings.ini old mode 100755 new mode 100644