This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
97 lines (87 loc) · 2.69 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
language: cpp
compiler: gcc
sudo: require
dist: bionic
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-bionic -y
- sudo apt-get update -q
- sudo apt-get install qt511base qt511multimedia -y
- source /opt/qt511/bin/qt511-env.sh
install:
- gcc --version
- g++ --versio
- sudo pip install --upgrade pip
- sudo pip install six --upgrade
- sudo pip install pip --upgrade
- sudo pip install hazm
- sudo apt-get install openssl -y
- sudo apt-get install libgl1-mesa-dev -y
- sudo apt-get install libespeak-ng-dev -y
- sudo apt-get install libsamplerate0-dev -y
# Build steps
script:
## build Tihu
- make ready
- make release
#- make test
- make play
- ./build/tihu_play build/libtihu.so "سلام" /tmp/1.wav
## tihu console => appimage
- cd ./tools/tihu_console
- qmake CONFIG+=release PREFIX=/usr
- make -j$(nproc)
## https://github.com/probonopd/linuxdeployqt/issues/338
#- sudo apt-get update
#- sudo apt-get -y install libgtk2.0-dev
#- git clone http://code.qt.io/qt/qtstyleplugins.git
#- cd qtstyleplugins
#- qmake # be sure to use the one from the Qt installation you are using for the application
#- make -j$(nproc)
#- sudo make install
#- cd -
## https://github.com/probonopd/linuxdeployqt/issues/340
#- make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
#- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
#- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
#- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
#- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage
#- ls
#- cp Tihu_console-*.AppImage ../../build
- cp tihu_console ../../build
## tihu_server
- cd -
# installing gprc
- git clone https://github.com/grpc/grpc
- cd grpc
- git checkout tags/v1.19.1
- git submodule update --init
- sed -i 's/-Werror/ /g' Makefile
- make
- sudo make install
# protoc
- cd third_party/protobuf
- sudo apt-get install autoconf automake libtool curl make g++ unzip
- git submodule update --init --recursive
- ./autogen.sh
- ./configure
- make
- sudo make install
- sudo ldconfig
# compile tihu_server
- cd ../../..
- cd tools/grpc
- make tihu_server
# to solve undefined_symbols (Unknown reason)
- cp /usr/local/lib/libgrpc++.so.1 ../../build
- cp /usr/local/lib/libgrpc++_reflection.so.1 ../../build
- cp /usr/local/lib/libgrpc.so.7 ../../build
## pack everything
- cd ../../build && tar -czf tihu-linux-x64.tar.gz *
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file:
- tihu-linux-x64.tar.gz
skip_cleanup: true
on:
tags: true