Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
568 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
RUN $CMAKE -B$BUILD_DIR -H. -DCMAKE_INSTALL_PREFIX:PATH=$CURDIR/_install | ||
RUN $MAKE -C $BUILD_DIR -j$NPROC -k install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
git clone --depth=1 https://github.com/TokTok/c-toxcore | ||
|
||
RUN $CMAKE -Bc-toxcore/$BUILD_DIR -Hc-toxcore -DBOOTSTRAP_DAEMON=OFF -DDEBUG=ON -DSTRICT_ABI=ON -DWARNINGS=OFF -DCMAKE_INSTALL_PREFIX:PATH=$CURDIR/libs | ||
RUN $MAKE -C c-toxcore/$BUILD_DIR -j$NPROC -k install | ||
|
||
rm -rf c-toxcore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
. $THIS_DIR/build-script | ||
#$THIS_DIR/git-deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
RUN() { | ||
"$@" | ||
} | ||
export CMAKE=cmake | ||
export MAKE=make | ||
export NPROC=`nproc` | ||
export CURDIR=$PWD | ||
|
||
export PKG_CONFIG_PATH=/opt/ffmpeg/lib/pkgconfig | ||
export LD_LIBRARY_PATH=$CURDIR/libs/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
RUN() { | ||
"$@" | ||
} | ||
export CMAKE=cmake | ||
export MAKE=make | ||
export NPROC=`sysctl -n hw.ncpu` | ||
export CURDIR=$PWD | ||
|
||
export CMAKE_PREFIX_PATH=`brew --prefix qt5` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
RUN() { | ||
./dockcross "$@" | ||
} | ||
export CMAKE=$ARCH-w64-mingw32.$LIBTYPE-cmake | ||
export MAKE=make | ||
export NPROC=`nproc` | ||
export CURDIR=/work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
export CFLAGS="-O3" | ||
export CXXFLAGS="-O3" | ||
|
||
BUILD_DIR=_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$GIT_TOKEN" ]; then | ||
exit 0 | ||
fi | ||
|
||
# Don't display the commands executed. | ||
set -eu +x | ||
|
||
DEPLOY_DIR=toktok.github.io/client/$ENV | ||
|
||
git config --global push.default simple | ||
git config --global user.email "deploy@travis-ci.org" | ||
git config --global user.name "Travis Deployer" | ||
|
||
git clone https://iphydf:$GIT_TOKEN@github.com/TokTok/toktok.github.io | ||
rm -rf $DEPLOY_DIR | ||
mkdir -p $DEPLOY_DIR | ||
|
||
case $ENV in | ||
linux) | ||
# Linux: package all libraries and write a startup script. | ||
ALL_LIBS=`ldd _install/bin/qtox` | ||
echo "Full list of dependent libraries:" | ||
echo "$ALL_LIBS" | ||
|
||
LIB_REGEX='(^/usr/lib/x86_64-linux-gnu/[^/]*\.so)' | ||
LIB_REGEX=$LIB_REGEX'|(/lib/libtox\w\.so)' | ||
LIB_REGEX=$LIB_REGEX'|(^/lib/x86_64-linux-gnu/libgcrypt\.so)' | ||
echo "Filtering with regex '$LIB_REGEX'" | ||
|
||
LIBS=`echo "$ALL_LIBS" | awk '{print $3}' | egrep $LIB_REGEX` | ||
echo "Packaged libraries:" | ||
echo "$LIBS" | ||
|
||
PKG_DIR=qtox-1.5.1 | ||
mkdir -p $PKG_DIR/bin | ||
mkdir -p $PKG_DIR/lib | ||
|
||
cp _install/bin/qtox $PKG_DIR/bin/ | ||
cp $LIBS $PKG_DIR/lib/ | ||
|
||
echo '#!/bin/bash' > $PKG_DIR/qtox | ||
echo 'THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"' >> $PKG_DIR/qtox | ||
echo 'export LD_LIBRARY_PATH="$THIS_DIR/lib"' >> $PKG_DIR/qtox | ||
echo 'chmod +x "$THIS_DIR/bin/qtox"' >> $PKG_DIR/qtox | ||
echo 'exec "$THIS_DIR/bin/qtox" "$@"' >> $PKG_DIR/qtox | ||
chmod +x $PKG_DIR/qtox | ||
tar zcf $DEPLOY_DIR/$PKG_DIR.tar.gz $PKG_DIR | ||
gzip < $PKG_DIR/bin/qtox > $DEPLOY_DIR/qtox.gz | ||
;; | ||
osx) | ||
# OSX: deploy the dmg image. | ||
cp _build/qtox.dmg $DEPLOY_DIR | ||
;; | ||
windows) | ||
# Windows: make a zip archive. | ||
mv _install/bin/qtox.exe . | ||
zip $DEPLOY_DIR/qtox-$ARCH.zip qtox.exe | ||
;; | ||
*) | ||
echo "Unknown ENV: '$ENV'" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
cd toktok.github.io | ||
git add . | ||
git commit -a -m"Upload new $ENV binaries." --amend | ||
git push --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/sh | ||
|
||
set -e -x | ||
|
||
#sudo add-apt-repository -y ppa:mc3man/trusty-media | ||
#sudo add-apt-repository -y ppa:chris-lea/libsodium | ||
# | ||
#sudo apt-get update -qq | ||
# | ||
#sudo apt-get install -y --force-yes \ | ||
# ffmpeg \ | ||
# libgtk2.0-dev \ | ||
# libopenal-dev \ | ||
# libopus-dev \ | ||
# libqrencode-dev \ | ||
# libqt5svg5-dev \ | ||
# libsodium-dev \ | ||
# libsqlcipher-dev \ | ||
# libswscale-dev \ | ||
# libvpx-dev \ | ||
# qttools5-dev \ | ||
# qttools5-dev-tools \ | ||
# \ | ||
# libasound-dev \ | ||
# libass-dev \ | ||
# libfdk-aac-dev \ | ||
# libmp3lame-dev \ | ||
# libogg-dev \ | ||
# libopencore-amrnb-dev \ | ||
# libopencore-amrwb-dev \ | ||
# libsdl1.2-dev \ | ||
# libsdl2-dev \ | ||
# libsoxr-dev \ | ||
# libspeex-dev \ | ||
# libva-dev \ | ||
# libvdpau-dev \ | ||
# libvidstab-dev \ | ||
# libvorbis-dev \ | ||
# libx264-dev \ | ||
# libx265-dev \ | ||
# libxv-dev \ | ||
# libxvidcore-dev \ | ||
# libwavpack-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
set -e -x | ||
|
||
brew update > /dev/null | ||
brew install libvpx opus libsodium ffmpeg qrencode qt5 sqlcipher gtk gdk-pixbuf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
|
||
JOB="$1" | ||
ENV="$2" | ||
PHASE="$3" | ||
|
||
THIS_DIR=`dirname \`which $0\`` | ||
|
||
. "$THIS_DIR/env.sh" | ||
. "$THIS_DIR/env-$ENV.sh" | ||
|
||
try_source() { | ||
SCRIPT="$THIS_DIR/$1" | ||
if [ -f "$SCRIPT" ]; then | ||
. "$SCRIPT" | ||
fi | ||
} | ||
|
||
try_source "$PHASE" | ||
try_source "$ENV-$PHASE" | ||
try_source "$JOB-$PHASE" | ||
try_source "$JOB-$ENV-$PHASE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
GENERATED='.*/_build/.*' | ||
|
||
coveralls \ | ||
--exclude test \ | ||
--exclude updater \ | ||
--exclude-pattern "$GENERATED" \ | ||
--gcov-options '\-lp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
# Install cpp-coveralls to upload test coverage results. | ||
pip install --user cpp-coveralls | ||
|
||
. $THIS_DIR/deploy-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
export CFLAGS="-fprofile-arcs -ftest-coverage" | ||
export CXXFLAGS="-fprofile-arcs -ftest-coverage" | ||
export LDFLAGS="-lgcov --coverage" | ||
|
||
export DISPLAY=:99.0 | ||
sh -e /etc/init.d/xvfb start | ||
|
||
. $THIS_DIR/build-script | ||
|
||
export CTEST_OUTPUT_ON_FAILURE=1 | ||
RUN $MAKE -C $BUILD_DIR -j$NPROC -k test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
DOCKER_IMAGE=toktoknet/windows-qt5:latest.$ARCH-shared | ||
|
||
docker pull $DOCKER_IMAGE | ||
docker run --rm $DOCKER_IMAGE > dockcross | ||
chmod +x dockcross |
Oops, something went wrong.