Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DQSegDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duncan Macleod
DQSegDB Server
Commits
d48ae604
Unverified
Commit
d48ae604
authored
2 years ago
by
Duncan Macleod
Browse files
Options
Downloads
Patches
Plain Diff
ci: run all CI on Python 3
i.e. drop support for Python 2
parent
9affeddc
No related branches found
No related tags found
No related merge requests found
Pipeline
#504247
failed
2 years ago
Stage: Syntax check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-14
12 additions, 14 deletions
.gitlab-ci.yml
with
12 additions
and
14 deletions
.gitlab-ci.yml
+
12
−
14
View file @
d48ae604
...
...
@@ -8,31 +8,31 @@ include:
file
:
python.yml
.syntax
:
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:coverage
extends
:
.python:coverage
stage
:
Syntax check
needs
:
[]
variables
:
PYTHON
:
"
python3"
script
:
# test that we can execute the WSGI app:
-
${PYTHON}
"${CI_PROJECT_DIR}/src/application.py"
-
python3 -m coverage run --source src
"${CI_PROJECT_DIR}/src/application.py"
syntax:el7
:
extends
:
.syntax
image
:
igwn/base:el7
variables
:
PYTHON
:
"
python2"
before_script
:
-
yum -y --setopt=obsoletes=0 install
m2crypto
python2
python2-glue
pyodbc
python3
python3-coverage
python3-lscsoft-glue
python3-m2crypto
python3-pip
# pyodbc not packaged for python3 on EL7, so build it from scratch
-
yum -y install gcc
-
python3 -m pip install pyodbc
syntax:rl8
:
extends
:
# https://computing.docs.ligo.org/gitlab-ci-templates/python/#.python:coverage
-
.python:coverage
-
.syntax
extends
:
.syntax
image
:
igwn/base:el8-testing
before_script
:
-
yum -y install
...
...
@@ -41,5 +41,3 @@ syntax:rl8:
python3-lscsoft-glue
python3-m2crypto
python3-pyodbc
script
:
-
${PYTHON} -m coverage run --source src "${CI_PROJECT_DIR}/src/application.py"
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