From 4829dc365d1cb35484e5187eac8586e4ee91bfde Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 19 Dec 2015 21:43:23 +0000 Subject: [PATCH] Added CI --- circle.yml | 7 +++++++ scripts/build | 3 --- scripts/runtests | 9 +++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 circle.yml create mode 100755 scripts/runtests diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..3d0b1bb --- /dev/null +++ b/circle.yml @@ -0,0 +1,7 @@ +dependencies: + pre: + - ./build + +test: + override: + - ./runtests diff --git a/scripts/build b/scripts/build index c618f41..49b41dd 100755 --- a/scripts/build +++ b/scripts/build @@ -10,6 +10,3 @@ cordova platform add android echo ">> Building Application source..." npm run build - -echo ">> Compiling Application..." -cordova build android diff --git a/scripts/runtests b/scripts/runtests new file mode 100755 index 0000000..5977f5e --- /dev/null +++ b/scripts/runtests @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e + +echo ">> Compile application..." +cordova build android + +echo ">> Lint JavaScript..." +npm run Lint