forked from google/shaderc-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (50 loc) · 1.39 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
language: rust
dist: bionic
osx_image: xcode12
branches:
only:
- master
before_script:
- git submodule update --init
jobs:
fast_finish: true
include:
- name: Format check
os: linux
rust: stable
before_script:
- rustup component add rustfmt
script:
- cargo fmt --all -- --check
- os: linux
rust: stable
script:
- travis_wait cargo build --verbose
- cargo test --verbose
- os: linux
rust: nightly
script:
- travis_wait cargo build --verbose
- cargo test --verbose
- os: osx
rust: stable
env: APPLE_PLATFORM=macOS
script:
- travis_wait cargo build --verbose
- cargo test --verbose
- os: osx
rust: stable
env: APPLE_PLATFORM=iOS
script:
- rustup target add aarch64-apple-ios
- travis_wait cargo build --target aarch64-apple-ios --verbose
- os: osx
rust: stable
env: APPLE_PLATFORM=iOS-Simulator
script:
- rustup target add x86_64-apple-ios
- export RUNTIME_ID=$(xcrun simctl list runtimes | grep iOS | cut -d ' ' -f 7 | tail -1)
- export SIM_ID=$(xcrun simctl create My-iphone7 com.apple.CoreSimulator.SimDeviceType.iPhone-7 $RUNTIME_ID)
- xcrun simctl boot $SIM_ID
- cargo install cargo-dinghy
- travis_wait 30 cargo dinghy test --target x86_64-apple-ios