forked from remacs/remacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (70 loc) · 2.41 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
---
language: rust
cache:
cargo: true
directories:
- $HOME/.rustup
rust:
- nightly
# Run rustfmt first.
stages:
- rustfmt
- test
jobs:
include:
- stage: rustfmt
os: linux # No need to run this everywhere
before_script:
- travis_wait rustup install $(cat rust-toolchain)
# rustfmt doesn't know where to look for libraries yet.
# See https://github.com/rust-lang-nursery/rustfmt/issues/1707#issuecomment-310005652
- export LD_LIBRARY_PATH=$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH
# Install rustfmt-nightly if it isn't already installed on Travis.
# This can be slow to install, so raise the Travis timeout.
- (which rustfmt && rustfmt --version && [[ "$(rustfmt --version)" =~ "0.3.4" ]]) || travis_wait cargo install --force rustfmt-nightly --vers 0.3.4
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 && ./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 && ./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