2018-02-07 08:44:26 +03:00
|
|
|
language: rust
|
2018-02-21 00:41:05 +03:00
|
|
|
sudo: required
|
2018-02-21 00:06:50 +03:00
|
|
|
|
2018-02-21 00:31:35 +03:00
|
|
|
cache: cargo
|
|
|
|
|
2018-02-07 08:44:26 +03:00
|
|
|
rust:
|
2018-08-04 20:00:51 +03:00
|
|
|
- stable
|
|
|
|
- beta
|
2018-02-07 08:44:26 +03:00
|
|
|
- nightly
|
2018-02-21 00:29:17 +03:00
|
|
|
|
2018-02-07 08:44:26 +03:00
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2018-02-20 23:48:15 +03:00
|
|
|
- rust: beta
|
2018-08-04 20:00:51 +03:00
|
|
|
- rust: nightly
|
2018-02-21 09:13:07 +03:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- rustup component add rustfmt-preview
|
2018-02-23 08:48:49 +03:00
|
|
|
- PREFIX=$TRAVIS_BUILD_DIR ./ci/build_harfbuzz.sh
|
|
|
|
|
2018-02-07 08:44:26 +03:00
|
|
|
script:
|
2018-08-04 20:58:31 +03:00
|
|
|
- "if [[ \"$TRAVIS_RUST_VERSION\" == \"stable\" ]] ; then cargo fmt --all -- --check ; else true ; fi"
|
2018-02-07 08:44:26 +03:00
|
|
|
- cargo build --verbose --all
|
|
|
|
- cargo test --verbose --all
|
2018-02-21 00:06:50 +03:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2018-02-21 00:29:17 +03:00
|
|
|
- binutils-dev
|
|
|
|
- cmake
|
|
|
|
- gcc
|
2019-02-18 05:48:18 +03:00
|
|
|
- xorg-dev
|
2018-02-21 00:29:17 +03:00
|
|
|
- libcurl4-openssl-dev
|
|
|
|
- libdw-dev
|
|
|
|
- libegl1-mesa-dev
|
|
|
|
- libelf-dev
|
2018-02-21 00:06:50 +03:00
|
|
|
- libfontconfig1-dev
|
|
|
|
- libfreetype6-dev
|
2018-02-21 00:29:17 +03:00
|
|
|
- libiberty-dev
|
|
|
|
- libxcb-ewmh-dev
|
|
|
|
- libxcb-icccm4-dev
|
|
|
|
- libxcb-keysyms1-dev
|
2018-02-21 04:12:17 +03:00
|
|
|
- ragel
|
2018-02-21 00:06:50 +03:00
|
|
|
|
2018-02-23 08:48:49 +03:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PKG_CONFIG_PATH=$TRAVIS_BUILD_DIR/lib/pkgconfig
|
2018-02-21 00:17:23 +03:00
|
|
|
# global:
|
|
|
|
# - RUSTFLAGS="-C link-dead-code"
|
2018-02-21 00:06:50 +03:00
|
|
|
|
|
|
|
after_success: |
|
|
|
|
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
|
|
|
|
tar xzf master.tar.gz &&
|
|
|
|
cd kcov-master &&
|
|
|
|
mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
cmake .. &&
|
|
|
|
make &&
|
|
|
|
make install DESTDIR=../../kcov-build &&
|
|
|
|
cd ../.. &&
|
|
|
|
rm -rf kcov-master &&
|
|
|
|
for file in target/debug/term-*[^\.d] target/debug/wezterm-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
|
|
|
|
bash <(curl -s https://codecov.io/bash) &&
|
|
|
|
echo "Uploaded code coverage"
|