Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
48651226
Commit
48651226
authored
Apr 27, 2018
by
Philipp Arras
Browse files
First full test
parent
70aa7b98
Pipeline
#28223
canceled with stages
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
48651226
...
...
@@ -7,27 +7,24 @@ variables:
CONTAINER_TEST_IMAGE
:
gitlab-registry.mpcdf.mpg.de/ift/nifty:$CI_BUILD_REF_NAME
stages
:
#
- build_docker
-
build_docker
-
test
# - release
# before_script:
# - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
# build_docker:
# stage: build_docker
# script:
# - docker build -t $CONTAINER_TEST_IMAGE .
# - docker push $CONTAINER_TEST_IMAGE
-
release
build_docker
:
stage
:
build_docker
script
:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
-
docker build -t $CONTAINER_TEST_IMAGE .
-
docker push $CONTAINER_TEST_IMAGE
#
test_python2_scalar:
#
stage: test
#
script:
#
- python setup.py install --user -f
#
- nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
#
- >
#
coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
test_python2_scalar
:
stage
:
test
script
:
-
python setup.py install --user -f
-
nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
-
>
coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
test_python3_scalar
:
image
:
$CONTAINER_TEST_IMAGE
...
...
@@ -36,27 +33,27 @@ test_python3_scalar:
-
python3 setup.py install --user -f
-
nosetests3 -q
#
test_python2_mpi:
#
stage: test
#
script:
#
- python setup.py install --user -f
#
- OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q 2> /dev/null
#
test_python3_mpi:
#
stage: test
#
script:
#
- python3 setup.py install --user -f
#
- OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q 2> /dev/null
#
pages:
#
stage: release
#
script:
#
- python setup.py install --user -f
#
- sh docs/generate.sh
#
- mv docs/build/ public/
#
artifacts:
#
paths:
#
- public
#
only:
#
- NIFTy_4
test_python2_mpi
:
stage
:
test
script
:
-
python setup.py install --user -f
-
OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q 2> /dev/null
test_python3_mpi
:
stage
:
test
script
:
-
python3 setup.py install --user -f
-
OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q 2> /dev/null
pages
:
stage
:
release
script
:
-
python setup.py install --user -f
-
sh docs/generate.sh
-
mv docs/build/ public/
artifacts
:
paths
:
-
public
only
:
-
NIFTy_4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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