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

CI builds #19

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
44 changes: 44 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
sudo: false
language: rust
cache: cargo

os:
- linux
- osx

rust:
- stable
- beta
- nightly

addons:
apt:
sources:
- george-edison55-precise-backports
packages:
# Newer cmake required on precise
- cmake
- cmake-data
# Pathfinder requires some X libraries
- libxcursor-dev
- libxinerama-dev
- libxrandr-dev
- libxxf86vm-dev

env:
global:
- TRAVIS_CARGO_NIGHTLY_FEATURE=""

before_script:
- pip install 'travis-cargo<0.2' --user
- export PATH=$HOME/Library/Python/2.7/bin:$PATH # required for osx

script:
- travis-cargo build -- --release
- travis-cargo --only nightly test -- --release
- travis-cargo --only stable doc -- --release
- travis-cargo bench

notifications:
email:
on_success: never
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pathfinder
# Pathfinder [![Build Status](https://travis-ci.org/jdub/pathfinder.svg?branch=travis-ci)](https://travis-ci.org/jdub/pathfinder) [![Build status](https://ci.appveyor.com/api/projects/status/41o9gfvmhrf2w0q9?svg=true)](https://ci.appveyor.com/project/jdub/pathfinder)

Pathfinder is a fast, practical GPU-based rasterizer for OpenType fonts using OpenGL 4.3. It
features:
Expand Down
59 changes: 59 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
environment:
PYTHON: "C:\\Python35-x64"
ARCH: amd64
# Note: You can't set empty environment variables on Windows,
# c.f. https://github.com/huonw/travis-cargo/issues/33
TRAVIS_CARGO_NIGHTLY_FEATURE: ""
matrix:
# There is no rust-stable-$TARGET.exe!
- TARGET: x86_64-pc-windows-msvc
BRANCH: stable
VS: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
- TARGET: x86_64-pc-windows-msvc
BRANCH: beta
VS: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
# Note: See issue with TRAVIS_CARGO_NIGHTLY_FEATURE above
# - TARGET: x86_64-pc-windows-msvc
# BRANCH: nightly
# VS: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
- TARGET: x86_64-pc-windows-gnu
MSYS_BITS: 64
BRANCH: stable

cache:
- "%USERPROFILE%\\.cargo"
- target

install:
# Rust
- ps: Start-FileDownload "https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe"
- rustup-init.exe -y --default-toolchain="%BRANCH%-%TARGET%"
- set PATH=%PATH%;%HOMEPATH%\.cargo\bin
- if defined VS call "%VS%" %ARCH%
- if defined MSYS_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS_BITS%\bin;C:\msys64\usr\bin

# What are we building with?
- where rustc cargo cl gcc
- rustc -vV
- cargo -vV

# travis-cargo
# Note: Where do --user binaries end up? Installing globally for now
- "%PYTHON%\\python.exe -m pip install travis-cargo^<0.2"
- set PATH=%PATH%;%PYTHON%\Scripts

build: off

test_script:
- "%CMD_IN_ENV% travis-cargo.exe build -- --release"
- "%CMD_IN_ENV% travis-cargo.exe --only nightly test -- --release"
- "%CMD_IN_ENV% travis-cargo.exe --only stable doc -- --release"
- "%CMD_IN_ENV% travis-cargo.exe bench"

after_test:
# Build lorem-ipsum example to distribute as an artifact
- "%CMD_IN_ENV% travis-cargo.exe build -- --release --example lorem-ipsum"

artifacts:
- path: target\release\examples\lorem-ipsum.exe
name: lorem-ipsum