|
31 | 31 | repository: "circleci-orb-testing" |
32 | 32 | - run: |
33 | 33 | name: Assert environment variables have been set |
34 | | - command: | |
| 34 | + command: | |
35 | 35 | if [ $CLOUDSMITH_DOWNLOADS_DOMAIN != "packages.ft.com" ] |
36 | 36 | then |
37 | 37 | echo "Test failed: CLOUDSMITH_DOWNLOADS_DOMAIN has not been set correctly." |
|
63 | 63 | repository: "circleci-orb-testing" |
64 | 64 | - run: python -m pip install -r requirements.txt --index-url "$CLOUDSMITH_PIP_INDEX_URL" |
65 | 65 |
|
| 66 | + test-pipenv_install_package_example: |
| 67 | + docker: |
| 68 | + - image: cimg/python:3.9 |
| 69 | + steps: |
| 70 | + - checkout |
| 71 | + - run: python -m ensurepip --upgrade |
| 72 | + - cloudsmith-python/set_env_vars_for_pip: |
| 73 | + repository: "circleci-orb-testing" |
| 74 | + - run: python -m pip install pipenv |
| 75 | + - run: |
| 76 | + name: Create Pipfile |
| 77 | + command: | |
| 78 | + cat \<< EOT >> Pipfile |
| 79 | + [[source]] |
| 80 | + url = "\$CLOUDSMITH_PIP_INDEX_URL" |
| 81 | + verify_ssl = true |
| 82 | + name = "cloudsmith" |
| 83 | + [packages] |
| 84 | + simplepkg = "0.0.1" |
| 85 | + [requires] |
| 86 | + python_version = "3.9" |
| 87 | + EOT |
| 88 | + - run: pipenv install |
| 89 | + |
66 | 90 | test-configure_pip_example: |
67 | 91 | docker: |
68 | 92 | - image: cimg/python:3.9 |
|
84 | 108 | repository: "circleci-orb-testing" |
85 | 109 | - run: |
86 | 110 | name: Assert environment variables have been set |
87 | | - command: | |
| 111 | + command: | |
88 | 112 | if [ $CLOUDSMITH_TWINE_REPOSITORY_URL != "https://python.cloudsmith.io/financial-times/circleci-orb-testing/" ] |
89 | 113 | then |
90 | 114 | echo "Test failed: CLOUDSMITH_TWINE_REPOSITORY_URL has not been set correctly." |
@@ -162,6 +186,9 @@ workflows: |
162 | 186 | - test-pip_install_requirements_example: |
163 | 187 | context: circleci-orb-publishing |
164 | 188 | filters: *filters |
| 189 | + - test-pipenv_install_package_example: |
| 190 | + context: circleci-orb-publishing |
| 191 | + filters: *filters |
165 | 192 | - test-configure_pip_example: |
166 | 193 | context: circleci-orb-publishing |
167 | 194 | filters: *filters |
@@ -189,6 +216,7 @@ workflows: |
189 | 216 | - test-set_env_vars_for_pip |
190 | 217 | - test-pip_install_package_example |
191 | 218 | - test-pip_install_requirements_example |
| 219 | + - test-pipenv_install_package_example |
192 | 220 | - test-configure_pip_example |
193 | 221 | - test-set_env_vars_for_twine |
194 | 222 | - test-upload_package_using_twine |
|
0 commit comments