mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
e2c84725de
* Format everything and add rustfmt to travis * Remove extern crate winit from examples and add force_multiline_blocks * Format the code properly * Fix inconsistent period in PULL_REQUEST_TEMPLATE.md * Only run rustfmt on nightly * Travis fixings
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
language: rust
|
|
|
|
matrix:
|
|
include:
|
|
# Linux 32bit
|
|
- env: TARGET=i686-unknown-linux-gnu
|
|
os: linux
|
|
rust: nightly
|
|
addons:
|
|
apt:
|
|
# Cross compiler and cross compiled C libraries
|
|
packages: &i686_packages
|
|
- gcc-multilib
|
|
- env: TARGET=i686-unknown-linux-gnu
|
|
os: linux
|
|
rust: stable
|
|
addons:
|
|
apt:
|
|
packages: *i686_packages
|
|
|
|
# Linux 64bit
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
os: linux
|
|
rust: nightly
|
|
- env: TARGET=x86_64-unknown-linux-gnu
|
|
os: linux
|
|
rust: stable
|
|
|
|
# macOS
|
|
- env: TARGET=x86_64-apple-darwin
|
|
os: osx
|
|
rust: nightly
|
|
- env: TARGET=x86_64-apple-darwin
|
|
os: osx
|
|
rust: stable
|
|
|
|
# iOS
|
|
- env: TARGET=x86_64-apple-ios
|
|
os: osx
|
|
rust: nightly
|
|
- env: TARGET=x86_64-apple-ios
|
|
os: osx
|
|
rust: stable
|
|
|
|
install:
|
|
- rustup self update
|
|
- rustup target add $TARGET; true
|
|
- rustup install nightly
|
|
- rustup component add rustfmt --toolchain nightly
|
|
|
|
script:
|
|
- cargo +nightly fmt --all -- --check
|
|
- cargo build --target $TARGET --verbose
|
|
- cargo build --target $TARGET --features serde --verbose
|
|
# Running iOS apps on OSX requires the simulator so we skip that for now
|
|
- if [ "$TARGET" != "x86_64-apple-ios" ]; then cargo test --target $TARGET --verbose; fi
|
|
- if [ "$TARGET" != "x86_64-apple-ios" ]; then cargo test --target $TARGET --features serde --verbose; fi
|
|
|
|
after_success:
|
|
- |
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
cargo publish --token ${CRATESIO_TOKEN}
|