|
6 | 6 | steps: |
7 | 7 | - run: percy finalize --all |
8 | 8 |
|
| 9 | + "artifacts": |
| 10 | + docker: |
| 11 | + - image: circleci/python:3.7-stretch-node-browsers |
| 12 | + environment: |
| 13 | + PYVERSION: python37 |
| 14 | + steps: |
| 15 | + - checkout |
| 16 | + - run: echo $PYVERSION > ver.txt |
| 17 | + - restore_cache: |
| 18 | + key: dep-{{ checksum "ver.txt" }}-{{ checksum "requires-ci.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }} |
| 19 | + - attach_workspace: |
| 20 | + at: ~/dash |
| 21 | + - store_artifacts: |
| 22 | + path: ~/dash/packages |
| 23 | + destination: /tmp/packages |
| 24 | + |
9 | 25 | "lint-unit-37": &lint-unit |
10 | 26 | working_directory: ~/dash |
11 | 27 | docker: |
|
71 | 87 | - run: echo $PYVERSION > ver.txt |
72 | 88 | - restore_cache: |
73 | 89 | key: dep-{{ checksum "ver.txt" }}-{{ checksum "requires-ci.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }} |
| 90 | + - run: |
| 91 | + name: 🚧 pip dev requirements |
| 92 | + command: | |
| 93 | + sudo pip install --upgrade virtualenv |
| 94 | + python -m venv venv || virtualenv venv && . venv/bin/activate |
| 95 | + pip install -e . -r requires-install.txt -r requires-ci.txt -r requires-testing.txt --quiet |
| 96 | + - save_cache: |
| 97 | + key: dep-{{ checksum "ver.txt" }}-{{ checksum "requires-ci.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }} |
| 98 | + paths: |
| 99 | + - "venv" |
| 100 | + |
74 | 101 | - run: |
75 | 102 | name: 🚧 build core |
76 | 103 | command: | |
@@ -112,6 +139,16 @@ jobs: |
112 | 139 | - run: echo $PYVERSION > ver.txt |
113 | 140 | - restore_cache: |
114 | 141 | key: dep-{{ checksum "ver.txt" }}-{{ checksum "requires-ci.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }} |
| 142 | + - run: |
| 143 | + name: 🚧 pip dev requirements |
| 144 | + command: | |
| 145 | + sudo pip install --upgrade virtualenv |
| 146 | + python -m venv venv || virtualenv venv && . venv/bin/activate |
| 147 | + pip install -e . -r requires-install.txt -r requires-ci.txt -r requires-testing.txt --quiet |
| 148 | + - save_cache: |
| 149 | + key: dep-{{ checksum "ver.txt" }}-{{ checksum "requires-ci.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }} |
| 150 | + paths: |
| 151 | + - "venv" |
115 | 152 | - run: |
116 | 153 | name: 🚧 build misc |
117 | 154 | command: | |
@@ -198,6 +235,17 @@ workflows: |
198 | 235 | - "percy-finalize": |
199 | 236 | requires: |
200 | 237 | - test-37 |
| 238 | + - "artifacts": |
| 239 | + requires: |
| 240 | + - percy-finalize |
| 241 | + filters: |
| 242 | + branches: |
| 243 | + only: |
| 244 | + - master |
| 245 | + - dev |
| 246 | + tags: |
| 247 | + only: /v*/ |
| 248 | + |
201 | 249 | python3.6: |
202 | 250 | jobs: |
203 | 251 | - lint-unit-36 |
|
0 commit comments