From eab0d725f06429040e72e9a5b6676d6cc414e82d Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Thu, 12 Jan 2017 13:31:56 +0200 Subject: [PATCH] Add Circle CI configuration --- circle.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 00000000..109000ca --- /dev/null +++ b/circle.yml @@ -0,0 +1,27 @@ +# https://circleci.com/docs/install-and-use-yarn/ + +machine: + environment: + YARN_VERSION: 0.18.1 + PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin" + +dependencies: + pre: + - | + if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then + echo "Download and install Yarn." + curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION + else + echo "The correct version of Yarn is already installed." + fi + override: + - yarn install + cache_directories: + - ~/.yarn + - ~/.cache/yarn + +test: + pre: + - yarn run build + override: + - yarn test