2018-09-14 15:39:24 +00:00
|
|
|
language: rust
|
2019-03-09 19:38:56 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
# Linux 64bit
|
|
|
|
- os: linux
|
|
|
|
rust: stable
|
|
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
|
|
rust: nightly
|
|
|
|
compiler: gcc
|
|
|
|
|
|
|
|
# macOS 64bit
|
|
|
|
- env: MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
os: osx
|
|
|
|
rust: stable
|
|
|
|
osx_image: xcode9
|
|
|
|
compiler: clang
|
|
|
|
#- env: MACOSX_DEPLOYMENT_TARGET=10.9
|
|
|
|
# os: osx
|
|
|
|
# rust: nightly
|
|
|
|
# osx_image: xcode9
|
|
|
|
# compiler: clang
|
|
|
|
|
|
|
|
# iPhoneOS 64bit
|
|
|
|
#- env: TARGET=aarch64-apple-ios
|
|
|
|
# os: osx
|
|
|
|
# osx_image: xcode9
|
|
|
|
# rust: nightly
|
|
|
|
|
|
|
|
# Windows 64bit
|
|
|
|
#- os: windows
|
|
|
|
# rust: stable
|
2018-09-14 15:39:24 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
2019-03-09 19:38:56 +00:00
|
|
|
- staging.tmp
|
2018-09-14 15:39:24 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
# Do not run bors builds against the nightly compiler.
|
|
|
|
# We want to find out about nightly bugs, so they're done in master, but we don't block on them.
|
|
|
|
- if [[ $TRAVIS_RUST_VERSION == "nightly" && $TRAVIS_BRANCH == "staging" ]]; then exit; fi
|
2018-09-27 23:04:17 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- cargo test
|
2019-02-14 19:08:19 +00:00
|
|
|
- cargo check --manifest-path wgpu-native/Cargo.toml
|
2019-03-09 19:38:56 +00:00
|
|
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then (brew update && brew upgrade cmake && brew install glfw3 && cd wgpu-native && cargo build --features=local,gfx-backend-metal && cd ../examples/hello_triangle_c && mkdir build && cd build && cmake .. && make); fi
|