Commit Graph

27 Commits

Author SHA1 Message Date
Robert Adam
4ab0e03492 CI: Include GRPC support
We have had multiple cases now in which there have been some errors in
changes related to GRPC that weren't detected by the CI because it
excluded the GRPC code from the build process. This will bw changed now.

As all other CIs have been stubborn, for now we'll only build GRPC on
travis as these use a new-enough Ubuntu version to be able to build
GRPC.
MacOS CI I haven't got to work with the whole homebrew stuff and Windows
is done in its own repo (which I won't touch either).

m
2020-04-20 12:07:26 +02:00
Robert Adam
30a6b52277 scripts/travis-ci/script.bash: Remove && operator as this breaks the intention of bash's -e flag 2020-01-28 13:30:13 +01:00
Davide Beatrici
4e67a2fafb Auto-update LICENSE.header in source files 2020-01-07 03:09:22 +01:00
Davide Beatrici
8d20129db0 Travis CI: disable SonarCloud scanner, incompatible with Ubuntu Bionic (18.04)
Unfortunately "sonar-scanner" fails with the following error:

ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
  * you are using the latest version of the build-wrapper and the SonarCFamily analyzer
  * your compiler is supported
  * you are wrapping your build correctly
  * you are wrapping a full/clean build
	at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:239)
	at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
	at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
	at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
	at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:403)
	at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:399)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:362)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:141)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
	at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:98)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:63)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
	at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
	at org.sonarsource.scanner.cli.Main.runAnalysis(Main.java:123)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:77)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)

The file is not generated because the C/C++ plugin library fails to load:

ERROR: ld.so: object '/home/travis/.sonar/cache/87f7532f0609a32b83c77be7ae487f14/build-wrapper-linux-x86/libinterceptor-${PLATFORM}.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
2019-10-15 02:59:55 +02:00
Davide Beatrici
c16ba44e03 Travis CI: switch to Ubuntu Bionic (18.04)
https://docs.travis-ci.com/user/reference/bionic

The ARM64 build was already using Bionic, even with "dist: xenial".

This commit also changes "https://dl.mumble.info/mirror/mirror.mxe.cc" with "https://dl.mumble.info/mirror/pkg.mxe.cc".

Originally only "mirror.mxe.cc" existed because we set up the mirror when https://pkg.mxe.cc was not reachable (we mirrored https://mirror.mxe.cc).

Once https://pkg.mxe.cc was back online, we mirrored it and symlinked "mirror.mxe.cc" to "pkg.mxe.cc".
2019-10-14 04:15:23 +02:00
Davide Beatrici
8cf4a9c2fd Travis CI: transform Linux x86_64 build into ARM64
Travis CI announced support for ARM64 builds a few days ago: https://blog.travis-ci.com/2019-10-07-multi-cpu-architecture-support

We already have a Linux x86_64 build on Azure Pipelines, which also generates an AppImage.

This commit changes the architecture for the build we have on Travis CI, so that it's not redundant anymore (and becomes useful).

The "no-pch" build is not changed because the only differences consist in the PCH header not being used and the SonarQube Scanner being executed.

Also, we don't want to use an ARM64 builder unnecessarily.
2019-10-13 01:35:41 +02:00
Davide Beatrici
3de7c13305 Travis CI: remove macOS build, it's on Azure Pipelines
The macOS build on Azure Pipelines was restored in 5094de66e0.
2019-10-12 22:50:50 +02:00
Davide Beatrici
e9029a904e Remove "compat", i386 is not supported anymore
"compat" was a very small and simple program; its purpose was to show a message informing the user that the Mumble binary is only for x86_64 processors.

The i386 architecture is not supported in Xcode 10, meaning that we cannot compile it anymore.

https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes
2019-10-10 00:11:16 +02:00
Davide Beatrici
267e306a25 Travis CI: remove AppImage creation and upload
It's now handled by Azure Pipelines.
2019-07-29 09:02:57 +02:00
Davide Beatrici
f8afdd758d Travis CI: remove Qt 4 builds 2019-07-27 23:40:50 +02:00
Davide Beatrici
82b0aac239 Travis CI: only execute SonarScan and AppImage builder when in our repository 2019-07-26 00:56:15 +02:00
probonopd
8026d1c0d1
Correct path to icon
Should fix https://github.com/TheAssassin/AppImageLauncher/issues/209
2019-07-20 18:40:33 +00:00
Davide Beatrici
b517f01047 Travis CI: add SonarCloud integration for static code analysis
[skip azurepipelines]
2019-06-29 00:41:35 +02:00
probonopd
049f6a2427
DEFINES+="MUMBLE_VERSION=${TRAVIS_COMMIT:0:7}"
Try to make the string shorter
2019-06-10 06:20:49 +00:00
probonopd
78155c5990
DEFINES+="MUMBLE_VERSION=$TRAVIS_COMMIT"
https://github.com/mumble-voip/mumble/pull/3703#issuecomment-500264876
2019-06-10 06:06:02 +00:00
probonopd
6013e8de26
AppImage 2019-06-09 19:41:31 +00:00
Davide Beatrici
c75aafc493 travis-ci: build installer in macOS build 2019-04-05 00:59:47 +02:00
Davide Beatrici
12f3ba1e69 travis-ci: switch to Xenial for Qt 5 builds, improve matrix, update MXE mirror 2019-03-10 04:57:11 +01:00
Davide Beatrici
b427333257 Auto-update LICENSE.header in source files 2019-01-25 04:56:19 +01:00
Mikkel Krautz
6a1663a502 scripts/travis-ci: fix MUMBLE_NO_PCH checks in script.bash.
Change our checks for MUMBLE_NO_PCH to use string comparisons
instead of numerical comparisons.

When MUMBLE_NO_PCH is not set, the numerical equivalent check
fails because nothing is on the left-hand side of the -eq operator.

Fixes mumble-voip/mumble#3314
2018-01-20 15:35:30 +01:00
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
Mikkel Krautz
5db8665e9d travis-ci: add macOS target.
This commit adds a Homebrew-based macOS build to our Travis CI build
matrix.

It also cleans up the exising build matrix such such that Linux builds
are built only on Linux hosts, and macOS builds are only built on macOS
hosts.
2017-03-29 00:51:06 +02:00
Mikkel Krautz
8ec4775949 travis-ci: add a no-pch build to the Travis matrix.
It's convenient to have a proof-build that checks whether
our no-pch build works, to keep it working.
2017-03-19 15:45:23 +01:00
Davide Beatrici
942ba6d48d travis-ci: Remove unneeded "winpaths_custom" CONFIG option
It's a leftover of old tests.
2017-03-18 00:53:29 +01:00
Davide Beatrici
2bd9f06651 travis-ci: Execute "make check" using Wine 2017-03-17 19:14:13 +01:00
Mikkel Krautz
f9cf8da5b8 travis-ci: Use MinGW build envs 2017-03-17 19:14:12 +01:00
Mikkel Krautz
629dd2d889 Add Qt 5 Trusty build to .travis.yml. 2017-02-28 01:52:11 +01:00