forked from remacs/remacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (89 loc) · 2.68 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
sudo: required
dist: trusty
language: rust
cache:
cargo: true
directories:
- $HOME/.rustup
addons:
apt:
packages:
- texinfo
- libgif-dev
- libxmp-dev
- libgnutls28-dev
homebrew:
packages:
- gnutls
- texinfo
# Run rustfmt first.
stages:
- rustfmt
- clippy
- test
jobs:
allow_failures:
- script: make clippy
- os: osx
include:
- stage: rustfmt
os: linux # No need to run this everywhere
before_script:
- travis_wait rustup install $(cat rust-toolchain)
- travis_wait rustup component add rustfmt-preview
- ./autogen.sh && ./configure --without-makeinfo --with-x=no --with-ns=no --without-gconf --without-gsettings
script: ./.travis-format.sh
- stage: clippy
os: linux # No need to run this everywhere
before_script:
- sudo apt install -y libgtk-3-dev
- travis_wait rustup component add clippy-preview
- ./autogen.sh && ./configure --without-makeinfo
script:
- make clippy
- &FULL_TEST
stage: test
env:
# Ensure that we build without warnings.
- CARGO_FLAGS="--features 'strict'"
- RUST_BACKTRACE=1
os: linux
before_script:
- sudo apt install -y libgtk-3-dev
- travis_wait rustup install $(cat rust-toolchain)
script:
# The -Wno-error allows MacOS code deprecation warnings to remain warnings.
- ./autogen.sh && RUSTFLAGS="-Dwarnings" WERROR_CFLAGS='-Werror -Wno-error=deprecated-declarations' ./configure --enable-checking=glyphs
- make -j 3 && echo '==> Running tests' && make check
-
<<: *FULL_TEST
os: osx
env:
- PATH="/usr/local/opt/texinfo/bin:$PATH"
before_script:
- travis_wait rustup install $(cat rust-toolchain)
- travis_wait rustup component add rustfmt-preview
- &NO_WINDOW_SYSTEM_TEST
stage: test
os: linux
env:
# Ensure that we build without warnings.
- CARGO_FLAGS="--features 'strict'"
- TRAVIS_WITH_NO_WINDOW_SYSTEM=1 # So we can tell them apart
- RUST_BACKTRACE=1
before_script:
- travis_wait rustup install $(cat rust-toolchain)
script:
- ./autogen.sh && RUSTFLAGS="-Dwarnings" WERROR_CFLAGS='-Werror -Wno-error=deprecated-declarations' ./configure --without-makeinfo --with-x=no --with-ns=no --without-gconf --without-gsettings
- make -j 3 && echo '==> Running nowindow tests' && make check
-
<<: *NO_WINDOW_SYSTEM_TEST
os: osx
before_script:
- travis_wait rustup install $(cat rust-toolchain)
notifications:
fast_finish: true
email: false
matrix:
fast_finish: true