1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00
wezterm/.travis.yml

59 lines
1.3 KiB
YAML
Raw Normal View History

2018-02-07 08:44:26 +03:00
language: rust
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-02-21 00:29:17 +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-21 00:06:50 +03:00
- rust: stable
2018-02-20 23:48:15 +03:00
- rust: beta
2018-02-21 09:13:07 +03:00
before_script:
- rustup component add rustfmt-preview
2018-02-07 08:44:26 +03:00
script:
2018-02-21 09:13:07 +03:00
- cargo fmt --all -- --write-mode=diff
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
- 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-21 00:17:23 +03:00
#env:
# 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"