Skip to content

Commit 2f2609e

Browse files
committed
wipwipwipity
1 parent 95ce1a7 commit 2f2609e

File tree

1 file changed

+15
-39
lines changed

1 file changed

+15
-39
lines changed

.circleci/config.yml

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
# Use the latest 2.1 version of CircleCI pipeline process engine.
2-
# See: https://circleci.com/docs/2.0/configuration-reference
31
version: 2.1
42

5-
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
6-
# See: https://circleci.com/docs/2.0/orb-intro/
73
orbs:
8-
# The python orb contains a set of prepackaged CircleCI configuration you can use repeatedly in your configuration files
9-
# Orb commands and jobs help you with common scripting around a language/tool
10-
# so you dont have to copy and paste it everywhere.
11-
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/python
124
python: circleci/python@1.2
135
win: circleci/windows@2.2.0
146

7+
common_params: &COMMON_PARAMS
8+
parameters:
9+
librdkafka_version:
10+
type: string
11+
default: v1.8.2
12+
1513
commands:
1614
install-librdkafka:
17-
parameters:
18-
librdkafka_version:
19-
type: string
20-
default: v1.8.2
15+
<<: *COMMON_PARAMS
2116
steps:
2217
- restore_cache:
2318
keys:
@@ -37,10 +32,7 @@ commands:
3732
command: tools/install-interceptors.sh
3833

3934
build-wheels:
40-
parameters:
41-
librdkafka_version:
42-
type: string
43-
default: v1.8.2
35+
<<: *COMMON_PARAMS
4436
steps:
4537
- run:
4638
name: Build wheels
@@ -50,22 +42,10 @@ commands:
5042
path: wheelhouse
5143

5244

53-
# Define a job to be invoked later in a workflow.
54-
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
5545
jobs:
56-
build-and-test: # This is the name of the job, feel free to change it to better match what you're trying to do!
57-
# These next lines defines a Docker executors: https://circleci.com/docs/2.0/executor-types/
58-
# You can specify an image from Dockerhub or use one of the convenience images from CircleCI's Developer Hub
59-
# A list of available CircleCI Docker convenience images are available here: https://circleci.com/developer/images/image/cimg/python
60-
# The executor is the environment in which the steps below will be executed - below will use a python 3.8 container
61-
# Change the version below to your required version of python
46+
build-and-test:
6247
docker:
6348
- image: cimg/python:3.8
64-
# Checkout the code as the first step. This is a dedicated CircleCI step.
65-
# The python orb's install-packages step will install the dependencies from a Pipfile via Pipenv by default.
66-
# Here we're making sure we use just use the system-wide pip. By default it uses the project root's requirements.txt.
67-
# Then run your tests!
68-
# CircleCI will report the results back to your VCS provider.
6949
environment:
7050
LD_LIBRARY_PATH: ~/destdir/lib
7151
steps:
@@ -110,10 +90,7 @@ jobs:
11090
- build-wheels
11191

11292
build-wheels-windows:
113-
parameters:
114-
librdkafka_version:
115-
type: string
116-
default: v1.8.2
93+
<<: *COMMON_PARAMS
11794
executor: win/default
11895
steps:
11996
- checkout
@@ -143,15 +120,14 @@ jobs:
143120
- checkout
144121
- build-wheels
145122

146-
# Invoke jobs via workflows
147-
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
148123
workflows:
149-
build: # This is the name of the workflow, feel free to change it to better match your workflow.
150-
# Inside the workflow, you define the jobs you want to run.
124+
build:
151125
jobs:
152126
- build-and-test
153127
build-wheels-all:
128+
when:
129+
<<pipeline.git.tag>>
154130
jobs:
155-
# - build-wheels-linux
131+
- build-wheels-linux
156132
- build-wheels-windows
157-
# - build-wheels-osx
133+
- build-wheels-osx

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy