From f7c503ff0500439fc7d7e1a486e1b0331906390c Mon Sep 17 00:00:00 2001 From: tomaka Date: Sat, 21 Oct 2017 15:08:34 +0200 Subject: [PATCH] Add testing on circle-ci (#171) * Add testing on circle-ci * Fix example name --- .circleci/config.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..4d4f493 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,56 @@ +version: 2 + +jobs: + + android-test: + working_directory: ~/cpal + docker: + - image: tomaka/cargo-apk + steps: + - run: apt-get -qq update && apt-get install -y git + - checkout + - restore_cache: + key: android-test-cache-{{ checksum "Cargo.toml" }} + - run: cargo apk build --example beep + - save_cache: + key: android-test-cache-{{ checksum "Cargo.toml" }} + paths: + - target + + asmjs-test: + working_directory: ~/cpal + docker: + - image: tomaka/rustc-emscripten + steps: + - run: apt-get -qq update && apt-get install -y git + - checkout + - restore_cache: + key: asmjs-test-cache-{{ checksum "Cargo.toml" }} + - run: cargo build --example beep --target asmjs-unknown-emscripten + - save_cache: + key: asmjs-test-cache-{{ checksum "Cargo.toml" }} + paths: + - target + + wasm-test: + working_directory: ~/cpal + docker: + - image: tomaka/rustc-emscripten + steps: + - run: apt-get -qq update && apt-get install -y git + - checkout + - restore_cache: + key: wasm-test-cache-{{ checksum "Cargo.toml" }} + - run: cargo build --example beep --target wasm32-unknown-emscripten + - save_cache: + key: wasm-test-cache-{{ checksum "Cargo.toml" }} + paths: + - target + +workflows: + version: 2 + build-test-and-deploy: + jobs: + - android-test + - asmjs-test + - wasm-test