diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..b110442 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,25 @@ +version: 2 # use CircleCI 2.0 +jobs: # a collection of steps + build: # runs not using Workflows must have a `build` job as entry point + working_directory: ~/# directory where steps will run + docker: # run the steps with Docker + - image: circleci/node:4.8.2 # ...with this image as the primary container; this is where all `steps` will run + steps: # a collection of executable commands + - checkout # special step to check out source code to working directory + - run: + name: update-npm + command: 'sudo npm install -g npm@latest' + - restore_cache: # special step to restore the dependency cache + # Read about caching dependencies: https://circleci.com/docs/2.0/caching/ + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: install-npm-wee + command: npm install + - save_cache: # special step to save the dependency cache + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: # run tests + name: test + command: gulp + \ No newline at end of file