Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LSMTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
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
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
ResearchAndDevelopment
LSMTool
Commits
9d9b012d
Commit
9d9b012d
authored
3 years ago
by
Mark de Wever
Committed by
Tammo Jan Dijkema
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
RAP-457
Implement basic CI
parent
2dd4210b
Branches
rap-457-implement-ci-v2
No related tags found
No related merge requests found
Pipeline
#31239
passed
2 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+78
-0
78 additions, 0 deletions
.gitlab-ci.yml
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
79 additions
and
1 deletion
.gitlab-ci.yml
0 → 100644
+
78
−
0
View file @
9d9b012d
workflow
:
rules
:
# Don't create a pipeline if it's a commit pipeline on a branch and that branch has open merge requests
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when
:
never
-
when
:
always
#
# PREPARE
#
.prepare
:
image
:
python:$PYTHON_VERSION
before_script
:
-
python --version
-
pip install virtualenv
-
virtualenv venv
-
source venv/bin/activate
#
# BUILD
#
.build
:
stage
:
build
extends
:
.prepare
script
:
-
python setup.py install
build-pyton-3.8
:
extends
:
.build
variables
:
PYTHON_VERSION
:
"
3.8"
build-pyton-3.9
:
extends
:
.build
variables
:
PYTHON_VERSION
:
"
3.9"
build-pyton-3.10
:
extends
:
.build
variables
:
PYTHON_VERSION
:
"
3.10"
build-pyton-latest
:
extends
:
.build
variables
:
PYTHON_VERSION
:
"
latest"
#
# TEST
#
.test
:
stage
:
test
extends
:
.prepare
script
:
-
python setup.py test
test-pyton-3.8
:
extends
:
.test
variables
:
PYTHON_VERSION
:
"
3.8"
test-pyton-3.9
:
extends
:
.test
variables
:
PYTHON_VERSION
:
"
3.9"
test-pyton-3.10
:
extends
:
.test
variables
:
PYTHON_VERSION
:
"
3.10"
test-pyton-latest
:
extends
:
.test
variables
:
PYTHON_VERSION
:
"
latest"
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
9d9b012d
...
...
@@ -38,7 +38,7 @@ if sys.version_info < (3, 0):
reqlist
=
[
'
numpy
'
,
'
astropy >= 0.4, <3.0
'
]
else
:
# Require astropy v3.2 or later to get much faster copies
reqlist
=
[
'
numpy
'
,
'
astropy >= 3.2
'
]
reqlist
=
[
'
numpy
'
,
'
astropy >= 3.2
'
,
'
matplotlib
'
,
'
scipy
'
]
if
build_c_extentions
:
reqlist
.
append
(
'
pybind11>=2.2.0
'
)
ext_modules
=
[
Extension
(
'
lsmtool.operations._grouper
'
,
...
...
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