config.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Javascript Node CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-javascript/ for more details
  4. #
  5. version: 2
  6. jobs:
  7. build:
  8. docker:
  9. # specify the version you desire here
  10. - image: circleci/node:latest-browsers
  11. # Specify service dependencies here if necessary
  12. # CircleCI maintains a library of pre-built images
  13. # documented at https://circleci.com/docs/2.0/circleci-images/
  14. # - image: circleci/mongo:3.4.4
  15. working_directory: ~/repo
  16. steps:
  17. - checkout
  18. # Download and cache dependencies
  19. - restore_cache:
  20. keys:
  21. - dependencies-{{ checksum "package.json" }}
  22. # fallback to using the latest cache if no exact match is found
  23. - dependencies-
  24. - run: npm install
  25. - run: npm rebuild node-sass
  26. - run: sudo npm install -g codecov
  27. - save_cache:
  28. paths:
  29. - node_modules
  30. key: dependencies-{{ checksum "package.json" }}
  31. # run tests!
  32. - run: npm run cover
  33. - run: codecov