forked from remacs/remacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (78 loc) · 2.45 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
---
sudo: required
dist: trusty
group: deprecated-2017Q4
language: rust
cache:
cargo: true
directories:
- $HOME/.rustup
rust:
- nightly
# Run rustfmt first.
stages:
- rustfmt
- test
- cerrors
jobs:
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
script: ./.travis-format.sh
- &FULL_TEST
stage: test
env:
# Ensure that we build without warnings.
- CARGO_FLAGS="--features 'strict'"
os: linux
before_script:
- sudo apt install -y texinfo libgif-dev libxpm-dev
- travis_wait rustup install $(cat rust-toolchain)
script:
- ./autogen.sh && RUSTFLAGS="-Dwarnings" ./configure
- make -j 3 && echo '==> Running tests' && make check
-
<<: *FULL_TEST
os: osx
env:
- PATH="/usr/local/opt/texinfo/bin:$PATH"
before_script:
# Travis docs say to avoid brew update, but this works around the
# incorrect Ruby version.
# https://github.com/travis-ci/travis-ci/issues/8552
# GNUTLS is now included, no need to explicitly install it.
- brew update
- brew install texinfo
- travis_wait rustup install $(cat rust-toolchain)
- &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
before_script:
- travis_wait rustup install $(cat rust-toolchain)
script:
- ./autogen.sh && RUSTFLAGS="-Dwarnings" ./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)
- stage: cerrors
os: linux # No need to run this everywhere
before_script:
- sudo apt install -y texinfo libgif-dev libxpm-dev
- travis_wait rustup install $(cat rust-toolchain)
- ./autogen.sh && ./configure --without-makeinfo --with-x=no --with-ns=no --without-gconf --without-gsettings --with-gif=no
- make -j 3
script:
- ./.travis-cerrors.sh
notifications:
fast_finish: true
email: false