WIP - Build for Windows on TravisCI #221
+30
−4
Closed
Travis CI / Travis CI - Pull Request
required action
Mar 12, 2019
in
24m 19s
Build Errored
The build errored. This is a change from the previous build, which passed.
Details
This is a pull request build.
It is running a build against the merge commit, after merging #221 WIP - Build for Windows on TravisCI.
Any changes that have been made to the master branch before the build ran are also included.
Jobs and Stages
This build has three jobs, running in parallel.
| Job | Rust | OS | State |
|---|---|---|---|
| nightly | Linux | passed | |
| nightly | windows | errored | |
| nightly | Linux | passed |
Build Configuration
| Build Option | Setting |
|---|---|
| Language | Rust |
| Operating System | Linux (Trusty) |
| Rust Version | nightly |
Build Configuration
{
"dist": "trusty",
"rust": [
"nightly"
],
"sudo": "required",
"group": "stable",
"matrix": {
"include": [
{
"os": [
"linux"
],
"dist": "trusty",
"name": "Linux desktop build",
"addons": {
"apt": {
"packages": [
"libasound2-plugins",
"libfaad2",
"libfftw3-single3",
"libjack-jackd2-0",
"libmms0",
"libmpg123-0",
"libopus0",
"liborc-0.4-0",
"libpulsedsp",
"libsamplerate0",
"libspeexdsp1",
"libtdb1",
"libtheora0",
"libtwolame0",
"libwayland-egl1-mesa",
"libwebp5",
"libwebrtc-audio-processing-0",
"liborc-0.4-dev",
"pulseaudio",
"pulseaudio-utils"
]
}
},
"script": [
"cargo build",
"ls examples/*.rs | xargs -I{} basename {} .rs | grep -v params_connect | RUST_BACKTRACE=1 GST_DEBUG=3 xargs -I{} cargo ex {}"
],
"before_script": [
"pulseaudio --start",
"gst-inspect-1.0 | grep Total"
],
"before_install": [
"curl -L http://servo-deps.s3.amazonaws.com/gstreamer/gstreamer-1.14-x86_64-linux-gnu.20190213.tar.gz | tar xz",
"sed -i \"s;prefix=/opt/gst;prefix=$PWD/gst;g\" $PWD/gst/lib/pkgconfig/*.pc",
"export PKG_CONFIG_PATH=$PWD/gst/lib/pkgconfig",
"export GST_PLUGIN_SYSTEM_PATH=$PWD/gst/lib/gstreamer-1.0",
"export GST_PLUGIN_SCANNER=$PWD/gst/libexec/gstreamer-1.0/gst-plugin-scanner",
"export PATH=$PATH:$PWD/gst/bin",
"export LD_LIBRARY_PATH=$PWD/gst/lib:$LD_LIBRARY_PATH"
]
},
{
"os": [
"windows"
],
"dist": "trusty",
"name": "Windows desktop build",
"script": [
"cargo build"
],
"before_install": [
"choco install pkgconfiglite",
"wget https://gstreamer.freedesktop.org/data/pkg/windows/1.14.1/gstreamer-1.0-devel-x86_64-1.14.1.msi",
"wget https://gstreamer.freedesktop.org/data/pkg/windows/1.14.1/gstreamer-1.0-x86_64-1.14.1.msi",
"msiexec /i gstreamer-1.0-devel-x86_64-1.14.1.msi /quiet /qn /norestart /log install-devel.log",
"msiexec /i gstreamer-1.0-x86_64-1.14.1.msi /quiet /qn /norestart /log install.log",
"curl -L https://win.rustup.rs/ -FileName rustup-init.exe",
"rustup-init.exe -y --default-host x86_64-pc-windows-msvc --default-toolchain none",
"set PATH=%PATH%;C:\\Users\\travis\\.cargo\\bin;C:\\gstreamer\\1.0\\x86_64\\bin",
"set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:\\gstreamer\\1.0\\x86_64\\lib\\pkgconfig",
"rustup -V",
"rustc --version",
"cargo --version",
"gst-inspect-1.0 | grep Total"
]
},
{
"os": [
"linux"
],
"dist": "trusty",
"name": "Android build",
"script": [
"cd examples/android",
"source build.sh"
],
"before_install": [
"curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=nightly -y",
"source $HOME/.cargo/env",
"rustup target add arm-linux-androideabi",
"wget https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip -O ndk.zip",
"unzip ndk.zip > /dev/null",
"export NDK_HOME=`pwd`/android-ndk-r16b",
"${NDK_HOME}/build/tools/make_standalone_toolchain.py --arch arm --api 21 --install-dir android-21-armv7-toolchain",
"echo \"[target.arm-linux-androideabi]\" >> examples/android/lib/.cargo/config",
"echo \"linker = \\\"`pwd`/android-21-armv7-toolchain/bin/arm-linux-androideabi-gcc\\\"\" >> examples/android/lib/.cargo/config",
"echo \"ar = \\\"`pwd`/android-21-armv7-toolchain/bin/arm-linux-androideabi-ar\\\"\" >> examples/android/lib/.cargo/config",
"cat examples/android/lib/.cargo/config"
]
}
]
},
".result": "configured",
"language": "rust"
}