|
| 1 | +version: 2.1 |
| 2 | + |
| 3 | +orbs: |
| 4 | + # The python orb contains a set of prepackaged circleci configuration you can use repeatedly in your configurations files |
| 5 | + # Orb commands and jobs help you with common scripting around a language/tool |
| 6 | + # so you dont have to copy and paste it everywhere. |
| 7 | + # See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/python |
| 8 | + python: circleci/[email protected] |
| 9 | + |
| 10 | +workflows: |
| 11 | + ci: |
| 12 | + jobs: |
| 13 | + - build-and-test-python36 |
| 14 | + - build-and-test-python37 |
| 15 | + - build-and-test-python38 |
| 16 | + - build-and-test-python39 |
| 17 | + |
| 18 | +jobs: |
| 19 | + build-and-test-python36: |
| 20 | + working_directory: /app |
| 21 | + docker: |
| 22 | + - image: thumbororg/thumbor-test:36 |
| 23 | + steps: |
| 24 | + - checkout |
| 25 | + - run: |
| 26 | + name: Compile Extensions |
| 27 | + command: make compile_ext |
| 28 | + - run: |
| 29 | + name: Redis |
| 30 | + command: make redis |
| 31 | + - run: |
| 32 | + name: Run Unit Tests |
| 33 | + command: make sequential-unit |
| 34 | + - run: |
| 35 | + name: Run Integration Tests |
| 36 | + command: env ASYNC_TEST_TIMEOUT=30 make integration_run |
| 37 | + - run: |
| 38 | + name: Lint |
| 39 | + command: make flake |
| 40 | + |
| 41 | + build-and-test-python37: |
| 42 | + working_directory: /app |
| 43 | + docker: |
| 44 | + - image: thumbororg/thumbor-test:37 |
| 45 | + steps: |
| 46 | + - checkout |
| 47 | + - run: |
| 48 | + name: Compile Extensions |
| 49 | + command: make compile_ext |
| 50 | + - run: |
| 51 | + name: Redis |
| 52 | + command: make redis |
| 53 | + - run: |
| 54 | + name: Run Unit Tests |
| 55 | + command: make sequential-unit |
| 56 | + - run: |
| 57 | + name: Run Integration Tests |
| 58 | + command: env ASYNC_TEST_TIMEOUT=30 make integration_run |
| 59 | + - run: |
| 60 | + name: Lint |
| 61 | + command: make flake |
| 62 | + |
| 63 | + build-and-test-python38: |
| 64 | + working_directory: /app |
| 65 | + docker: |
| 66 | + - image: thumbororg/thumbor-test:38 |
| 67 | + steps: |
| 68 | + - checkout |
| 69 | + - run: |
| 70 | + name: Compile Extensions |
| 71 | + command: make compile_ext |
| 72 | + - run: |
| 73 | + name: Redis |
| 74 | + command: make redis |
| 75 | + - run: |
| 76 | + name: Run Unit Tests |
| 77 | + command: make sequential-unit |
| 78 | + - run: |
| 79 | + name: Run Integration Tests |
| 80 | + command: env ASYNC_TEST_TIMEOUT=30 make integration_run |
| 81 | + - run: |
| 82 | + name: Lint |
| 83 | + command: make flake |
| 84 | + |
| 85 | + build-and-test-python39: |
| 86 | + working_directory: /app |
| 87 | + docker: |
| 88 | + - image: thumbororg/thumbor-test:39 |
| 89 | + steps: |
| 90 | + - checkout |
| 91 | + - run: |
| 92 | + name: Compile Extensions |
| 93 | + command: make compile_ext |
| 94 | + - run: |
| 95 | + name: Redis |
| 96 | + command: make redis |
| 97 | + - run: |
| 98 | + name: Run Unit Tests |
| 99 | + command: make sequential-unit |
| 100 | + - run: |
| 101 | + name: Run Integration Tests |
| 102 | + command: env ASYNC_TEST_TIMEOUT=30 make integration_run |
| 103 | + - run: |
| 104 | + name: Lint |
| 105 | + command: make flake |
0 commit comments