From 6c8b5e4714d38035300105f0f623ad16f8a2bda2 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 29 Oct 2017 01:01:01 +0330 Subject: [PATCH] add circleCI --- .circleci/config.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100755 index 0000000000..75fd8d2c14 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,35 @@ +version: 2 +jobs: + build: + working_directory: /usr/src/app + docker: + - image: banian/node + steps: + # Checkout repository + - checkout + + # Restore cache + - restore_cache: + key: yarn-{{ checksum "yarn.lock" }} + + # Install dependencies + - run: + name: Install Dependencies + command: NODE_ENV=dev yarn + + # Keep cache + - save_cache: + key: yarn-{{ checksum "yarn.lock" }} + paths: + - "node_modules" + + # Build + - run: + name: Build + command: | + yarn build + + # Test + - run: + name: Tests + command: yarn test && yarn coverage