mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
82 lines
2.7 KiB
YAML
82 lines
2.7 KiB
YAML
language: python
|
|
python: 2.7
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- sudo: false
|
|
before_install:
|
|
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
|
|
- pip install virtualenv
|
|
- source ~/.profile
|
|
script:
|
|
- ./mach test-tidy --no-progress --all
|
|
- ./mach test-tidy --no-progress --self-test
|
|
- python ./etc/memory_reports_over_time.py --test
|
|
- bash etc/ci/check_no_panic.sh
|
|
cache: false
|
|
- sudo: 9000
|
|
dist: xenial
|
|
before_install:
|
|
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
- sudo add-apt-repository 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main' -y
|
|
- sudo apt-get update -q
|
|
- sudo apt-get install clang-3.9 llvm-3.9-dev llvm-3.9-runtime libunwind8-dev -y
|
|
- pip install virtualenv
|
|
- 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
|
|
- export LLVM_CONFIG=llvm-config-3.9
|
|
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain none -y
|
|
- source ~/.profile
|
|
script:
|
|
# see https://github.com/servo/servo/issues/20664
|
|
#- ./mach cargo check -p compositing --no-default-features
|
|
- ./mach build -d --verbose -p servo
|
|
- ./mach test-unit
|
|
- ./mach clean
|
|
- bash etc/ci/lockfile_changed.sh
|
|
cache:
|
|
directories:
|
|
- .servo
|
|
- $HOME/.cargo
|
|
- $HOME/.rustup
|
|
- $HOME/.ccache
|
|
before_cache:
|
|
- ./mach clean-nightlies --keep 2 --force
|
|
- ./mach clean-cargo-cache --keep 2 --force
|
|
- rm -rf $HOME/.cargo/registry
|
|
- rm -rf $HOME/.servo/target
|
|
env:
|
|
CC=gcc-6
|
|
CXX=g++-6
|
|
CCACHE=/usr/bin/ccache
|
|
RUSTFLAGS=-Dwarnings
|
|
CARGO_INCREMENTAL=0
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- autoconf2.13
|
|
- cmake
|
|
- gcc-6
|
|
- g++-6
|
|
- gperf
|
|
- libosmesa6-dev
|
|
- libglu1-mesa-dev
|
|
- libgles2-mesa-dev
|
|
- python-virtualenv
|
|
- xorg-dev
|
|
- ccache
|
|
- libdbus-glib-1-dev
|
|
- libedit-dev
|
|
- libglib2.0-dev
|
|
|
|
branches:
|
|
only:
|
|
- master
|