Use circle-ci for Android

This commit is contained in:
Pierre Krieger 2017-07-25 10:13:45 +02:00
parent 772acc742e
commit 3ccee6c2f1
2 changed files with 23 additions and 6 deletions

23
.circleci/config.yml Normal file
View file

@ -0,0 +1,23 @@
version: 2
jobs:
test:
working_directory: ~/tgst
docker:
- image: tomaka/cargo-apk
steps:
- checkout
- restore_cache:
key: test-cache-{{ checksum "Cargo.lock" }}
- run: cargo apk build --example window
- save_cache:
key: test-cache-{{ checksum "Cargo.lock" }}
paths:
- target
workflows:
version: 2
build-test-and-deploy:
jobs:
- test

View file

@ -1,8 +1,3 @@
sudo: required
services:
- docker
language: rust language: rust
rust: rust:
@ -26,7 +21,6 @@ script:
- cargo build --verbose - cargo build --verbose
- if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi - if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi
- cargo test --verbose - cargo test --verbose
- docker run --rm -v "$(pwd):/root/src" -w /root/src tomaka/cargo-apk cargo apk build --example window --verbose
os: os:
- linux - linux