diff options
| author | jason | 2019-10-25 10:31:17 -0600 |
|---|---|---|
| committer | GitHub | 2019-10-25 10:31:17 -0600 |
| commit | 9cb7b0e7d44b8dfe5eaf2d7df133a67e072e9481 (patch) | |
| tree | 638134576c1b87fa40c8809541d3b28849d95fe9 /circle.yml | |
| parent | 5d27e9a6cabecf357b26216b7afb0880bbaf36ef (diff) | |
| parent | 5a303146ffe9289fccaf3411fd0a9ec4e807244c (diff) | |
| download | eventmq-9cb7b0e7d44b8dfe5eaf2d7df133a67e072e9481.tar.gz eventmq-9cb7b0e7d44b8dfe5eaf2d7df133a67e072e9481.zip | |
Merge pull request #72 from eventmq/update-circleci-tests
Fix CircleCI tests
Diffstat (limited to 'circle.yml')
| -rw-r--r-- | circle.yml | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/circle.yml b/circle.yml deleted file mode 100644 index fade121..0000000 --- a/circle.yml +++ /dev/null | |||
| @@ -1,88 +0,0 @@ | |||
| 1 | version: 2 | ||
| 2 | jobs: | ||
| 3 | build: | ||
| 4 | working_directory: ~/eventmq/eventmq | ||
| 5 | parallelism: 1 | ||
| 6 | shell: /bin/bash --login | ||
| 7 | # CircleCI 2.0 does not support environment variables that refer to each other the same way as 1.0 did. | ||
| 8 | # 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 . | ||
| 9 | environment: | ||
| 10 | CIRCLE_ARTIFACTS: /tmp/circleci-artifacts | ||
| 11 | CIRCLE_TEST_REPORTS: /tmp/circleci-test-results | ||
| 12 | # In CircleCI 1.0 we used a pre-configured image with a large number of languages and other packages. | ||
| 13 | # In CircleCI 2.0 you can now specify your own image, or use one of our pre-configured images. | ||
| 14 | # The following configuration line tells CircleCI to use the specified docker image as the runtime environment for you job. | ||
| 15 | # We have selected a pre-built image that mirrors the build environment we use on | ||
| 16 | # the 1.0 platform, but we recommend you choose an image more tailored to the needs | ||
| 17 | # of each job. For more information on choosing an image (or alternatively using a | ||
| 18 | # VM instead of a container) see https://circleci.com/docs/2.0/executor-types/ | ||
| 19 | # To see the list of pre-built images that CircleCI provides for most common languages see | ||
| 20 | # https://circleci.com/docs/2.0/circleci-images/ | ||
| 21 | docker: | ||
| 22 | - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37 | ||
| 23 | command: /sbin/init | ||
| 24 | steps: | ||
| 25 | # Machine Setup | ||
| 26 | # 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 | ||
| 27 | # 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. | ||
| 28 | - checkout | ||
| 29 | # Prepare for artifact and test results collection equivalent to how it was done on 1.0. | ||
| 30 | # In many cases you can simplify this from what is generated here. | ||
| 31 | # 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/' | ||
| 32 | - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS | ||
| 33 | # This is based on your 1.0 configuration file or project settings | ||
| 34 | - run: | ||
| 35 | working_directory: ~/eventmq/eventmq | ||
| 36 | command: 'sudo redis-cli ping >/dev/null 2>&1 || sudo service redis-server | ||
| 37 | start; ' | ||
| 38 | # This is based on your 1.0 configuration file or project settings | ||
| 39 | - run: | ||
| 40 | working_directory: ~/eventmq/eventmq | ||
| 41 | command: pyenv global 2.7.11 3.5.2 | ||
| 42 | # Dependencies | ||
| 43 | # This would typically go in either a build or a build-and-test job when using workflows | ||
| 44 | # Restore the dependency cache | ||
| 45 | - restore_cache: | ||
| 46 | keys: | ||
| 47 | # This branch if available | ||
| 48 | - v1-dep-{{ .Branch }}- | ||
| 49 | # Default branch if not | ||
| 50 | - v1-dep-master- | ||
| 51 | # Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly | ||
| 52 | - v1-dep- | ||
| 53 | # This is based on your 1.0 configuration file or project settings | ||
| 54 | - run: pip install -e .[testing] | ||
| 55 | - run: pip install python-coveralls | ||
| 56 | - run: pip3.5 install -e .[testing] | ||
| 57 | # Save dependency cache | ||
| 58 | - save_cache: | ||
| 59 | key: v1-dep-{{ .Branch }}-{{ epoch }} | ||
| 60 | paths: | ||
| 61 | # This is a broad list of cache paths to include many possible development environments | ||
| 62 | # You can probably delete some of these entries | ||
| 63 | - vendor/bundle | ||
| 64 | - ~/virtualenvs | ||
| 65 | - ~/.m2 | ||
| 66 | - ~/.ivy2 | ||
| 67 | - ~/.bundle | ||
| 68 | - ~/.go_workspace | ||
| 69 | - ~/.gradle | ||
| 70 | - ~/.cache/bower | ||
| 71 | # Test | ||
| 72 | # This would typically be a build job when using workflows, possibly combined with build | ||
| 73 | # This is based on your 1.0 configuration file or project settings | ||
| 74 | - run: nosetests-2.7 --with-coverage --cover-inclusive --cover-package=eventmq --cover-tests | ||
| 75 | - run: /opt/circleci/python/3.5.2/bin/nosetests-3.4 | ||
| 76 | # This is based on your 1.0 configuration file or project settings | ||
| 77 | - run: find . -name \*.py -print | xargs flake8 --show-source --statistics | ||
| 78 | - run: coveralls | ||
| 79 | # Teardown | ||
| 80 | # 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 | ||
| 81 | # Save test results | ||
| 82 | - store_test_results: | ||
| 83 | path: /tmp/circleci-test-results | ||
| 84 | # Save artifacts | ||
| 85 | - store_artifacts: | ||
| 86 | path: /tmp/circleci-artifacts | ||
| 87 | - store_artifacts: | ||
| 88 | path: /tmp/circleci-test-results \ No newline at end of file | ||