mirror of
https://github.com/servo/servo.git
synced 2025-07-14 02:43:42 +01:00
deny warnings
This commit is contained in:
parent
dfd8e85338
commit
6d6491e814
5 changed files with 22 additions and 19 deletions
|
@ -20,11 +20,11 @@ matrix:
|
|||
- export LLVM_CONFIG=/usr/lib/llvm-3.9/bin/llvm-config
|
||||
- export CC=gcc-5 CXX=g++-5
|
||||
script:
|
||||
- ./mach build -d --verbose
|
||||
- ./mach test-unit
|
||||
- RUSTFLAGS='-D warnings' ./mach build -d --verbose
|
||||
- RUSTFLAGS='-D warnings' ./mach test-unit
|
||||
- ./mach clean
|
||||
- ./mach build-geckolib
|
||||
- ./mach test-stylo
|
||||
- RUSTFLAGS='-D warnings' ./mach build-geckolib
|
||||
- RUSTFLAGS='-D warnings' ./mach test-stylo
|
||||
- bash etc/ci/lockfile_changed.sh
|
||||
cache:
|
||||
directories:
|
||||
|
|
|
@ -48,6 +48,8 @@ cache:
|
|||
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||
|
||||
build_script:
|
||||
- mach build -d -v && mach test-unit
|
||||
- set RUSTFLAGS=-D warnings
|
||||
- mach build -d -v
|
||||
- mach test-unit
|
||||
|
||||
test: off
|
||||
|
|
|
@ -28,6 +28,7 @@ pub use self::platform::{alloc, dealloc, realloc};
|
|||
mod platform {
|
||||
extern crate libc;
|
||||
|
||||
#[cfg(not(any(target_os = "android")))]
|
||||
use std::ptr;
|
||||
|
||||
use super::MIN_ALIGN;
|
||||
|
|
|
@ -32,11 +32,11 @@ mac-rel-wpt4:
|
|||
|
||||
mac-dev-unit:
|
||||
- ./mach clean-nightlies --keep 3 --force
|
||||
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig ./mach build --dev
|
||||
- env ./mach test-unit
|
||||
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig RUSTFLAGS=-Dwarnings ./mach build --dev
|
||||
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig RUSTFLAGS=-Dwarnings ./mach test-unit
|
||||
- env ./mach package --dev
|
||||
- env ./mach build-cef
|
||||
- ./mach build-geckolib
|
||||
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig RUSTFLAGS=-Dwarnings ./mach build-cef
|
||||
- env RUSTFLAGS=-Dwarnings ./mach build-geckolib
|
||||
- bash ./etc/ci/lockfile_changed.sh
|
||||
- bash ./etc/ci/manifest_changed.sh
|
||||
|
||||
|
@ -80,13 +80,13 @@ linux-dev:
|
|||
- ./mach clean-nightlies --keep 3 --force
|
||||
- ./mach test-tidy --no-progress --all
|
||||
- ./mach test-tidy --no-progress --self-test
|
||||
- env CC=gcc-5 CXX=g++-5 ./mach build --dev
|
||||
- env ./mach test-unit
|
||||
- env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach build --dev
|
||||
- env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach test-unit
|
||||
- env ./mach package --dev
|
||||
- env ./mach build-cef
|
||||
- env ./mach build --dev --no-default-features --features default-except-unstable
|
||||
- ./mach build-geckolib
|
||||
- ./mach test-stylo
|
||||
- env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach build-cef
|
||||
- env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach build --dev --no-default-features --features default-except-unstable
|
||||
- env RUSTFLAGS=-Dwarnings ./mach build-geckolib
|
||||
- env RUSTFLAGS=-Dwarnings ./mach test-stylo
|
||||
- bash ./etc/ci/lockfile_changed.sh
|
||||
- bash ./etc/ci/manifest_changed.sh
|
||||
- bash ./etc/ci/check_no_panic.sh
|
||||
|
@ -120,7 +120,7 @@ linux-nightly:
|
|||
|
||||
android:
|
||||
- ./mach clean-nightlies --keep 3 --force
|
||||
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach build --android --dev
|
||||
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 RUSTFLAGS=-Dwarnings ./mach build --android --dev
|
||||
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach package --android --dev
|
||||
- bash ./etc/ci/lockfile_changed.sh
|
||||
- bash ./etc/ci/manifest_changed.sh
|
||||
|
@ -134,18 +134,19 @@ android-nightly:
|
|||
|
||||
arm32:
|
||||
- ./mach clean-nightlies --keep 3 --force
|
||||
- env ./mach build --rel --target=arm-unknown-linux-gnueabihf
|
||||
- env RUSTFLAGS=-Dwarnings ./mach build --rel --target=arm-unknown-linux-gnueabihf
|
||||
- bash ./etc/ci/lockfile_changed.sh
|
||||
- bash ./etc/ci/manifest_changed.sh
|
||||
|
||||
arm64:
|
||||
- ./mach clean-nightlies --keep 3 --force
|
||||
- env ./mach build --rel --target=aarch64-unknown-linux-gnu
|
||||
- env RUSTFLAGS=-Dwarnings ./mach build --rel --target=aarch64-unknown-linux-gnu
|
||||
- bash ./etc/ci/lockfile_changed.sh
|
||||
- bash ./etc/ci/manifest_changed.sh
|
||||
|
||||
windows-msvc-dev:
|
||||
- mach.bat clean-nightlies --keep 3 --force
|
||||
- set RUSTFLAGS=-D warnings
|
||||
- mach.bat build --dev
|
||||
- mach.bat test-unit
|
||||
- mach.bat package --dev
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#[macro_use] extern crate bitflags;
|
||||
extern crate compositing;
|
||||
#[cfg(target_os = "android")] extern crate egl;
|
||||
extern crate euclid;
|
||||
extern crate gleam;
|
||||
extern crate glutin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue