Welcome to mirror list, hosted at ThFree Co, Russian Federation.

script.bash « travis-ci « .ci - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 34af33f6a60c4d3f0bfce9e126981f103e7379a8 (plain)
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
#!/bin/bash -ex
#
# Copyright 2005-2020 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.

if [ "${TRAVIS_REPO_SLUG}" == "mumble-voip/mumble" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
		if [ "${TRAVIS_BRANCH}" == "master" ]; then
			MASTER_BRANCH=1
		fi
fi

VER=$(python scripts/mumble-version.py)

if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
	if [ "${MUMBLE_HOST}" == "aarch64-linux-gnu" ]; then
		mkdir build && cd build
		cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -Dtests=ON -Dversion=$VER -Dsymbols=ON -Donline-tests=ON ..
		cmake --build .
		# We don't execute tests on ARM64 because TestPacketDataStream fails.
		# See https://github.com/mumble-voip/mumble/issues/3845.
		#ctest
		sudo cmake --install .
	elif [ "${MUMBLE_HOST}" == "x86_64-linux-gnu" ]; then
		mkdir build && cd build
		# We specify the absolute path because otherwise Travis CI's CMake is used.
		/usr/bin/cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -Dtests=ON -Dversion=$VER -Dsymbols=ON -Donline-tests=ON ..
		/usr/bin/cmake --build .
		/usr/bin/ctest --verbose
		sudo /usr/bin/cmake --install .
	elif [ "${MUMBLE_HOST}" == "i686-w64-mingw32" ] || [ "${MUMBLE_HOST}" == "x86_64-w64-mingw32" ]; then
		wget https://dl.mumble.info/build/extra/asio_sdk.zip -P /tmp/
		unzip /tmp/asio_sdk.zip
		mv asiosdk_2.3.3_2019-06-14 3rdparty/asio

		mkdir build && cd build

		PATH=$PATH:/usr/lib/mxe/usr/bin

		${MUMBLE_HOST}.static-cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -Dtests=ON -Dversion=$VER -Dstatic=ON -Dsymbols=ON -Dasio=ON \
			-Dzeroconf=OFF -Dice=OFF -Doverlay=OFF -Donline-tests=ON ..
		cmake --build .
		# TODO: investigate why tests fail.
		#ctest
	else
		exit 1
	fi
else
	exit 1
fi