Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jupyterhub-paris-saclay
image
Commits
34c0f02c
Commit
34c0f02c
authored
Feb 01, 2021
by
Nicolas M. Thiéry
Browse files
Tentative initial CI tests
parent
8be69517
Pipeline
#101931
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
12 deletions
+34
-12
.gitlab-ci.yml
.gitlab-ci.yml
+27
-12
test_python_packages.py
test_python_packages.py
+7
-0
No files found.
.gitlab-ci.yml
View file @
34c0f02c
image
:
docker:git
stages
:
-
build
-
test
services
:
-
docker:dind
before_script
:
-
docker login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
after_script
:
-
'
docker
logout
$CI_REGISTRY'
variables
:
IMAGE
:
${CI_REGISTRY_IMAGE}
build-image
:
stage
:
build
#and stage
services
:
docker:dind
image
:
docker:git
before_script
:
-
docker login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
-
docker pull jupyter/tensorflow-notebook
-
docker build -t ${IMAGE} .
-
docker push ${IMAGE}
after_script
:
-
'
docker
logout
$CI_REGISTRY'
only
:
changes
:
-
Dockerfile
-
environment.yml
image
:
${IMAGE}
tests_python_packages
:
stage
:
test
script
:
-
docker pull jupyter/tensorflow-notebook
-
docker build -t gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image .
-
docker push gitlab-registry.in2p3.fr/jupyterhub-paris-saclay/image
-
pytest
test_python_packages.py
0 → 100644
View file @
34c0f02c
def
test_python_version
():
import
sys
assert
sys
.
version_info
.
major
==
3
assert
sys
.
version_info
.
minor
==
8
def
test_tensorflow
():
import
tensorflow
Nicolas Thiéry
@nicolas.thiery1
mentioned in issue
#23 (closed)
·
Feb 01, 2021
mentioned in issue
#23 (closed)
mentioned in issue #23
Toggle commit list
Nicolas Thiéry
@nicolas.thiery1
mentioned in issue
#26
·
Feb 01, 2021
mentioned in issue
#26
mentioned in issue #26
Toggle commit list
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