Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Travis builds and use headless x11 #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
---
language: rust

os:
- linux
- osx

# TODO: figure out how to get headless X11 working
script: |
#!/bin/bash
cargo build --verbose
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
cargo build --tests --verbose
else
cargo test --verbose
fi
- linux
- osx

rust:
- stable
- beta
- nightly

services:
- xvfb # Fake X11

addons:
apt:
packages:
- libxcb-shape0-dev # Because we use X11
- libxcb-xfixes0-dev # Because we use X11

cache: cargo
matrix:
allow_failures:
- rust: nightly

script:
- cargo clean
- cargo build
- cargo test