From 3ccee6c2f100dde0f17705f9771b9d74e3fb72f6 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Tue, 25 Jul 2017 10:13:45 +0200 Subject: [PATCH] Use circle-ci for Android --- .circleci/config.yml | 23 +++++++++++++++++++++++ .travis.yml | 6 ------ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..822ac89b --- /dev/null +++ b/.circleci/config.yml @@ -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 diff --git a/.travis.yml b/.travis.yml index 597c6699..9fe67531 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,3 @@ -sudo: required - -services: - - docker - language: rust rust: @@ -26,7 +21,6 @@ script: - cargo build --verbose - if [ $TRAVIS_OS_NAME = osx ]; then cargo build --target x86_64-apple-ios --verbose; fi - cargo test --verbose - - docker run --rm -v "$(pwd):/root/src" -w /root/src tomaka/cargo-apk cargo apk build --example window --verbose os: - linux