diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..a526fd4 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,28 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference +version: 2 +jobs: + build: + docker: + - image: circleci/node:6 + steps: + - checkout + - restore_cache: # special step to restore the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: Setup Dependencies + command: npm install + - run: + name: Setup Code Climate test-reporter + command: | + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter + chmod +x ./cc-test-reporter + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: # run tests + name: Run Test and Coverage + command: | + ./cc-test-reporter before-build + npm test -- --coverage + ./cc-test-reporter after-build --exit-code $? diff --git a/README.txt b/README.txt index 746b8f9..53a5750 100644 --- a/README.txt +++ b/README.txt @@ -1 +1,3 @@ Just a test + +Just another test