Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Commit

Permalink
helpline service
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikpaulus authored and maltek committed Oct 17, 2018
0 parents commit 44be5f3
Show file tree
Hide file tree
Showing 2,028 changed files with 743,131 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.o
*.a
*.yate
Makefile
*.so
*.so.6.0.0
/yate/config.log
/yate/config.status
/yate/yate
/yate/yate.pc
/yate/yateiss.inc
/access_token.json
/yate/run
/yate/yate-config
/yate/yatepaths.h
/yate/yateversn.h
46 changes: 46 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
stages:
- build
- upload

build_job:
stage: build
image: "debian:stretch"
before_script:
- apt-get -y -qq update
- apt-get -y -qq install build-essential libsqlite3-dev pkg-config patchelf
script:
# Install client dist
- make install
- cp integration/helpline.service dist_root/srv/helpline/
# Checker dist
- make install_checker
- mkdir -p checker_root/systemd/
- cp integration/helpline.service checker_root/systemd/helpline_checker.service
artifacts:
paths:
- metadata.yml
- dist_root/
- checker_root/
only:
- master
tags:
- faust
- docker

upload_job:
stage: upload
script:
- ssh [email protected] mkdir -p "/var/www/files/internal/ci/faustctf/2018/$CI_PROJECT_NAME"
- tar -v -czp -H posix -f dist_root.tar.gz -C dist_root .
- tar -v -czp -H posix -f checker_root.tar.gz -C checker_root .
- scp metadata.yml dist_root.tar.gz checker_root.tar.gz "[email protected]:/var/www/files/internal/ci/faustctf/2018/$CI_PROJECT_NAME/"
after_script:
- find "$CI_PROJECT_DIR" -mindepth 1 -delete
variables:
GIT_STRATEGY: none
only:
- master
tags:
- faust
- www-upload

33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
SERVICE := helpline
DESTDIR ?= dist_root/
CHECKERDIR ?= checker_root/
SERVICEDIR ?= /srv/$(SERVICE)
#MAKEFLAGS = -j9

.PHONY: build install build_checker install_checker

build:
cd yate/ ; CFLAGS="-g -O2" ./configure --prefix=$(shell pwd)/dist_root/$(SERVICEDIR) --without-mysql --without-libgsm --without-libspeex --without-openssl --without-libqt4
$(MAKE) $(MAKEFLAGS) -C yate/

install: build
install -d $(DESTDIR)$(SERVICEDIR)
$(MAKE) -C yate/ install
rm $(DESTDIR)$(SERVICEDIR)/etc/yate/*.conf
install conf.d-service/*.conf $(DESTDIR)$(SERVICEDIR)/etc/yate/
install -d $(DESTDIR)$(SERVICEDIR)/share/yate/sounds/helpline/
install sounds-IVR/*.mulaw $(DESTDIR)$(SERVICEDIR)/share/yate/sounds/helpline/
patchelf --set-rpath $(SERVICEDIR)/lib/ $(DESTDIR)$(SERVICEDIR)/bin/yate

build_checker:
$(MAKE) -C yate/ clean
cd yate/ ; CFLAGS="-g -DCHECKER -O2" ./configure --prefix=$(shell pwd)/checker_root/helpline/ --without-mysql --without-libgsm --without-libspeex --without-openssl --without-libqt4
$(MAKE) $(MAKEFLAGS) -C yate/

install_checker: build_checker
install -d $(CHECKERDIR)/helpline
$(MAKE) -C yate/ install
rm $(CHECKERDIR)/helpline/etc/yate/*.conf
install conf.d-checker/*.conf $(CHECKERDIR)/helpline/etc/yate/
install -d $(CHECKERDIR)/helpline/share/yate/sounds/helpline/
patchelf --set-rpath /srv/helpline/lib/ $(CHECKERDIR)/helpline/bin/yate
1 change: 1 addition & 0 deletions checker/helpline/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .helplinechecker import HelplineChecker
Loading

0 comments on commit 44be5f3

Please sign in to comment.