|
1 | 1 | version: 2 |
2 | 2 |
|
3 | 3 | jobs: |
4 | | - build_and_test_python36: |
| 4 | + circleci_is_disabled_job: |
5 | 5 | docker: |
6 | | - - image: circleci/python:3.6 |
7 | | - - image: rabbitmq:3 |
8 | | - - image: mongo:3.4 |
9 | | - |
10 | | - working_directory: ~/repo |
11 | | - |
12 | | - environment: |
13 | | - VIRTUALENV_DIR: "~/virtualenv" |
14 | | - # Don't install various StackStorm dependencies which are already |
15 | | - # installed by CI again in the various check scripts |
16 | | - ST2_INSTALL_DEPS: "0" |
17 | | - |
| 6 | + - image: cimg/base:stable |
18 | 7 | steps: |
19 | | - - checkout |
20 | | - - restore_cache: |
21 | | - key: v1-dependency-cache-py36-{{ checksum "requirements.txt" }} |
22 | | - - run: |
23 | | - name: Download dependencies |
24 | | - # NOTE: We don't want to use default "-e" option because this means |
25 | | - # step will fail immediately on one of the commands failures and we |
26 | | - # can't intercept the error and cause non-fatal exit in case pack |
27 | | - # doesn't declare support for Python 3 |
28 | | - shell: /bin/bash |
29 | | - command: | |
30 | | - git clone -b master git://github.com/stackstorm-exchange/ci.git ~/ci |
31 | | - ~/ci/.circle/dependencies ; ~/ci/.circle/exit_on_py3_checks $? |
32 | 8 | - run: |
33 | | - name: Run tests (Python 3.6) |
34 | | - # NOTE: We don't want to use default "-e" option because this means |
35 | | - # step will fail immediately on one of the commands failures and we |
36 | | - # can't intercept the error and cause non-fatal exit in case pack |
37 | | - # doesn't declare support for Python 3 |
38 | 9 | shell: /bin/bash |
39 | | - command: ~/ci/.circle/test ; ~/ci/.circle/exit_on_py3_checks $? |
40 | | - - save_cache: |
41 | | - key: v1-dependency-cache-py36-{{ checksum "requirements.txt" }} |
42 | | - paths: |
43 | | - - ~/.cache/pip |
44 | | - - ~/.apt-cache |
45 | | - # NOTE: We use virtualenv files from Python 3.6 step in "deploy" job so we |
46 | | - # only persist paths from this job |
47 | | - - persist_to_workspace: |
48 | | - root: / |
49 | | - paths: |
50 | | - - home/circleci/ci |
51 | | - - home/circleci/virtualenv |
52 | | - - tmp/st2 |
53 | | - - home/circleci/repo |
54 | | - - home/circleci/.gitconfig |
55 | | - |
56 | | - |
57 | | - deploy: |
58 | | - docker: |
59 | | - - image: circleci/python:3.6 |
60 | | - |
61 | | - working_directory: ~/repo |
62 | | - |
63 | | - environment: |
64 | | - VIRTUALENV_DIR: "~/virtualenv" |
65 | | - |
66 | | - steps: |
67 | | - - checkout |
68 | | - - restore_cache: |
69 | | - key: v1-dependency-cache-py36-{{ checksum "requirements.txt" }} |
70 | | - - attach_workspace: |
71 | | - at: / |
72 | | - - run: |
73 | | - name: Install dependencies |
74 | | - command: | |
75 | | - sudo apt-get update |
76 | | - sudo apt -y install gmic optipng |
77 | | - ~/ci/.circle/install_gh |
78 | | - - run: |
79 | | - # NOTE: We try to retry the script up to 5 times if it fails. The command could fail due |
80 | | - # to the race (e.g. we try to push changes to index, but index has been updated by some |
81 | | - # other pack in the mean time) |
82 | | - name: Update exchange.stackstorm.org |
83 | | - command: ~/ci/.circle/retry_on_failure.sh ~/ci/.circle/deployment |
| 10 | + command: echo CircleCI disabled on StackStorm-Exchange |
84 | 11 |
|
85 | 12 | workflows: |
86 | 13 | version: 2 |
87 | | - # Workflow which runs on each push |
88 | | - build_test_deploy_on_push: |
89 | | - jobs: |
90 | | - - build_and_test_python36 |
91 | | - - deploy: |
92 | | - requires: |
93 | | - - build_and_test_python36 |
94 | | - filters: |
95 | | - branches: |
96 | | - only: master |
97 | | - build_test_weekly: |
| 14 | + circleci_is_disabled: |
98 | 15 | jobs: |
99 | | - - build_and_test_python36 |
100 | | - # Workflow which runs nightly - note we don't perform deploy job on nightly |
101 | | - # build |
102 | | - triggers: |
103 | | - # Run nightly build for the pack |
104 | | - - schedule: |
105 | | - # NOTE: We run it at 1 am UTC on every Saturday |
106 | | - cron: "0 1 * * 6" |
107 | | - filters: |
108 | | - branches: |
109 | | - only: |
110 | | - - master |
| 16 | + - circleci_is_disabled_job |
0 commit comments