config.yml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # This configuration was automatically generated from a CircleCI 1.0 config.
  2. # It should include any build commands you had along with commands that CircleCI
  3. # inferred from your project structure. We strongly recommend you read all the
  4. # comments in this file to understand the structure of CircleCI 2.0, as the idiom
  5. # for configuration has changed substantially in 2.0 to allow arbitrary jobs rather
  6. # than the prescribed lifecycle of 1.0. In general, we recommend using this generated
  7. # configuration as a reference rather than using it in production, though in most
  8. # cases it should duplicate the execution of your original 1.0 config.
  9. version: 2
  10. jobs:
  11. build:
  12. working_directory: ~/flot/flot
  13. parallelism: 1
  14. shell: /bin/bash --login
  15. # CircleCI 2.0 does not support environment variables that refer to each other the same way as 1.0 did.
  16. # If any of these refer to each other, rewrite them so that they don't or see https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables .
  17. environment:
  18. CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
  19. CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
  20. # In CircleCI 1.0 we used a pre-configured image with a large number of languages and other packages.
  21. # In CircleCI 2.0 you can now specify your own image, or use one of our pre-configured images.
  22. # The following configuration line tells CircleCI to use the specified docker image as the runtime environment for you job.
  23. # We have selected a pre-built image that mirrors the build environment we use on
  24. # the 1.0 platform, but we recommend you choose an image more tailored to the needs
  25. # of each job. For more information on choosing an image (or alternatively using a
  26. # VM instead of a container) see https://circleci.com/docs/2.0/executor-types/
  27. # To see the list of pre-built images that CircleCI provides for most common languages see
  28. # https://circleci.com/docs/2.0/circleci-images/
  29. docker:
  30. - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37
  31. command: /sbin/init
  32. steps:
  33. # Machine Setup
  34. # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
  35. # The following `checkout` command checks out your code to your working directory. In 1.0 we did this implicitly. In 2.0 you can choose where in the course of a job your code should be checked out.
  36. - checkout
  37. # Prepare for artifact and test results collection equivalent to how it was done on 1.0.
  38. # In many cases you can simplify this from what is generated here.
  39. # 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
  40. - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
  41. # This is based on your 1.0 configuration file or project settings
  42. - run:
  43. working_directory: ~/flot/flot
  44. command: nvm install 8.2.0 && nvm alias default 8.2.0
  45. # Dependencies
  46. # This would typically go in either a build or a build-and-test job when using workflows
  47. # Restore the dependency cache
  48. - restore_cache:
  49. keys:
  50. # This branch if available
  51. - v1-dep-{{ .Branch }}-
  52. # Default branch if not
  53. - v1-dep-master-
  54. # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
  55. - v1-dep-
  56. # This is based on your 1.0 configuration file or project settings
  57. - run: sudo apt-get update
  58. - run: sudo apt-get install libpango1.0-0
  59. - run: sudo apt-get install firefox
  60. - run: sudo ln -sf /usr/lib/firefox/firefox /usr/bin/firefox
  61. - run: curl -s https://raw.githubusercontent.com/chronogolf/circleci-google-chrome/master/use_chrome_stable_version.sh | bash
  62. - run: node --version
  63. - run: npm --version
  64. - run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
  65. # The following line was run implicitly in your 1.0 builds based on what CircleCI inferred about the structure of your project. In 2.0 you need to be explicit about which commands should be run. In some cases you can discard inferred commands if they are not relevant to your project.
  66. - run: if [ -z "${NODE_ENV:-}" ]; then export NODE_ENV=test; fi
  67. - run: export PATH="~/flot/flot/node_modules/.bin:$PATH"
  68. - run: npm install
  69. # This is based on your 1.0 configuration file or project settings
  70. - run: npm install -g dont-break
  71. - run: npm run build
  72. # Save dependency cache
  73. - save_cache:
  74. key: v1-dep-{{ .Branch }}-{{ epoch }}
  75. paths:
  76. # This is a broad list of cache paths to include many possible development environments
  77. # You can probably delete some of these entries
  78. - vendor/bundle
  79. - ~/virtualenvs
  80. - ~/.m2
  81. - ~/.ivy2
  82. - ~/.bundle
  83. - ~/.go_workspace
  84. - ~/.gradle
  85. - ~/.cache/bower
  86. - ./node_modules
  87. # Test
  88. # This would typically be a build job when using workflows, possibly combined with build
  89. # This is based on your 1.0 configuration file or project settings
  90. - run: npm run dont-break
  91. # Teardown
  92. # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
  93. # Save test results
  94. - store_test_results:
  95. path: /tmp/circleci-test-results
  96. # Save artifacts
  97. - store_artifacts:
  98. path: /tmp/circleci-artifacts
  99. - store_artifacts:
  100. path: /tmp/circleci-test-results