Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
d02052fe
Commit
d02052fe
authored
4 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Parameterize the Python version
parent
a49b2629
No related branches found
No related tags found
1 merge request
!183
CircleCI-based macOS CI
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.circleci/config.yml
+25
-14
25 additions, 14 deletions
.circleci/config.yml
with
25 additions
and
14 deletions
.circleci/config.yml
+
25
−
14
View file @
d02052fe
...
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
version
:
2
version
:
2
.1
aliases
:
-
&PREPARE_VIRTUALENV
...
...
@@ -48,6 +48,10 @@ jobs:
destination
:
"
docs"
macos-tests
:
parameters
:
py-version
:
type
:
"
string"
macos
:
xcode
:
"
12.3.0"
...
...
@@ -65,24 +69,27 @@ jobs:
-
run
:
name
:
"
Get
Pip"
command
:
|
# The CircleCI macOS environment has curl and Python
2.7
but does
#
not
have pip. So, for starters, use curl and Python
2.7
to get
# pip.
# The CircleCI macOS environment has curl and Python but does
not
# have pip. So, for starters, use curl and Python to get
pip.
if [ "<< parameters.py-version >>" == "2.7" ]; then
curl https://bootstrap.pypa.io/2.7/get-pip.py -o get-pip.py
python2 get-pip.py
else
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
fi
python<< parameters.py-version >> get-pip.py
-
run
:
name
:
"
Create
Virtualenv"
command
:
|
#
Now t
he CircleCI macOS Python
2
environment has some Python
#
libraries
in it which conflict with ZKAPAuthorizer's
#
requirements. So
install virtualenv and use it to create an
#
environment for
ZKAPAuthorizer so it can have all its own
#
versions of its
dependencies.
/Users/distiller/Library/Python/2.7/bin/
pip install virtualenv
#
T
he CircleCI macOS Python environment has some Python
libraries
# in it which conflict with ZKAPAuthorizer's
requirements. So
# install virtualenv and use it to create an
environment for
# ZKAPAuthorizer so it can have all its own
versions of its
# dependencies.
python<< parameters.py-version >> -m
pip install virtualenv
# Make sure virtualenv creates a Python 2 environment!
virtualenv --python=python
2
venv
virtualenv --python=python
<< parameters.py-version >>
venv
# Get the newest pip we can because who knows what came along with
# that virtualenv.
...
...
@@ -213,4 +220,8 @@ workflows:
jobs
:
# - "documentation"
# - "linux-tests"
-
"
macos-tests"
-
"
macos-tests"
:
matrix
:
parameters
:
py-version
:
-
"
2.7"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment