Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ResearchAndDevelopment
LSMTool
Commits
9d9b012d
Commit
9d9b012d
authored
Apr 11, 2022
by
Mark de Wever
Committed by
Tammo Jan Dijkema
Jun 02, 2022
Browse files
RAP-457
Implement basic CI
parent
2dd4210b
Pipeline
#31239
passed with stages
in 3 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
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"
setup.py
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'
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment