2017-07-25 10:13:45 +02:00
|
|
|
version: 2
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2017-09-14 16:31:34 +02:00
|
|
|
android-test:
|
|
|
|
working_directory: ~/winit
|
2017-07-25 10:13:45 +02:00
|
|
|
docker:
|
|
|
|
- image: tomaka/cargo-apk
|
|
|
|
steps:
|
2017-09-16 09:46:53 -04:00
|
|
|
- run: apt-get -qq update && apt-get install -y git
|
2017-07-25 10:13:45 +02:00
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
2017-09-14 16:31:34 +02:00
|
|
|
key: android-test-cache-{{ checksum "Cargo.toml" }}
|
2017-07-25 10:13:45 +02:00
|
|
|
- run: cargo apk build --example window
|
|
|
|
- save_cache:
|
2017-09-14 16:31:34 +02:00
|
|
|
key: android-test-cache-{{ checksum "Cargo.toml" }}
|
2017-07-25 10:13:45 +02:00
|
|
|
paths:
|
|
|
|
- target
|
|
|
|
|
2017-09-14 16:31:34 +02:00
|
|
|
asmjs-test:
|
|
|
|
working_directory: ~/winit
|
|
|
|
docker:
|
|
|
|
- image: tomaka/rustc-emscripten
|
|
|
|
steps:
|
2017-09-16 09:46:53 -04:00
|
|
|
- run: apt-get -qq update && apt-get install -y git
|
2017-09-14 16:31:34 +02:00
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
key: asmjs-test-cache-{{ checksum "Cargo.toml" }}
|
|
|
|
- run: cargo build --example window --target asmjs-unknown-emscripten
|
|
|
|
- save_cache:
|
|
|
|
key: asmjs-test-cache-{{ checksum "Cargo.toml" }}
|
|
|
|
paths:
|
|
|
|
- target
|
|
|
|
|
|
|
|
wasm-test:
|
|
|
|
working_directory: ~/winit
|
|
|
|
docker:
|
|
|
|
- image: tomaka/rustc-emscripten
|
|
|
|
steps:
|
2017-09-16 09:46:53 -04:00
|
|
|
- run: apt-get -qq update && apt-get install -y git
|
2017-09-14 16:31:34 +02:00
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
key: wasm-test-cache-{{ checksum "Cargo.toml" }}
|
|
|
|
- run: cargo build --example window --target wasm32-unknown-emscripten
|
|
|
|
- save_cache:
|
|
|
|
key: wasm-test-cache-{{ checksum "Cargo.toml" }}
|
|
|
|
paths:
|
|
|
|
- target
|
|
|
|
|
2017-07-25 10:13:45 +02:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build-test-and-deploy:
|
|
|
|
jobs:
|
2017-09-14 16:31:34 +02:00
|
|
|
- android-test
|
|
|
|
- asmjs-test
|
|
|
|
- wasm-test
|