Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
empyre
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dieter Weber
empyre
Commits
14590e47
Commit
14590e47
authored
7 years ago
by
Jan Caron
Browse files
Options
Downloads
Patches
Plain Diff
Added second test to gitlab-ci.yml!
parent
144768b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+52
-36
52 additions, 36 deletions
.gitlab-ci.yml
pyramid/kernel.py
+2
-0
2 additions, 0 deletions
pyramid/kernel.py
with
54 additions
and
36 deletions
.gitlab-ci.yml
+
52
−
36
View file @
14590e47
...
...
@@ -71,53 +71,69 @@
# # Execute tests:
# - python setup.py test
#
image
:
ubuntu:16.04
before_script
:
# # Check and print Python version
# - python --version
# Create SSH configuration directory if necessary (also parents with -p, mode: read/write/exec):
-
mkdir -p --mode=700 ~/.ssh/
# Add SSH key for jutil:
-
echo "$ID_RSA_JUTIL_PRIVATE" > ~/.ssh/id_rsa_jutil
# Provide read access to owner (octal value code: 400) to jutil key and known_hosts with chmod:
-
chmod 400 ~/.ssh/id_rsa_jutil
# Configure SSH to use ~/.ssh/jutil_key for iffgit.fz-juelich.de (-e allows \n):
-
echo -e "Host iffgit.fz-juelich.de\n\tIdentityFile ~/.ssh/id_rsa_jutil\n" > ~/.ssh/config
# Add iffgit.fz-juelich.de to known_hosts (not the same key as Jutil!):
-
echo iffgit.fz-juelich.de,134.94.161.83 "$ID_RSA_IFFGIT_PUBLIC" > ~/.ssh/known_hosts
# Provide read access to owner (octal value code: 400) to known_hosts with chmod:
-
chmod 400 ~/.ssh/known_hosts
# Script from Ingo Heimbach:
-
apt-get update
-
apt-get install -y curl bzip2 git mesa-utils
-
curl -O -L https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-
chmod +x Miniconda3-latest-Linux-x86_64.sh
-
./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3
-
export PATH="/opt/miniconda3/bin:${PATH}"
-
apt-cache policy git
# - conda create -y -n pyramid python
# - source activate test_env
# - conda install -y numpy
# - python -c "import numpy as np; print(np.__file__, np.__version__)"
stages
:
-
test
test_conda
:
before_script
:
# Create SSH configuration directory if necessary (also parents with -p, mode: read/write/exec):
-
mkdir -p --mode=700 ~/.ssh/
# Add SSH key for jutil:
-
echo "$ID_RSA_JUTIL_PRIVATE" > ~/.ssh/id_rsa_jutil
# Provide read access to owner (octal value code: 400) to jutil key and known_hosts with chmod:
-
chmod 400 ~/.ssh/id_rsa_jutil
# Configure SSH to use ~/.ssh/jutil_key for iffgit.fz-juelich.de (-e allows \n):
-
echo -e "Host iffgit.fz-juelich.de\n\tIdentityFile ~/.ssh/id_rsa_jutil\n" > ~/.ssh/config
# Add iffgit.fz-juelich.de to known_hosts (not the same key as Jutil!):
-
echo iffgit.fz-juelich.de,134.94.161.83 "$ID_RSA_IFFGIT_PUBLIC" > ~/.ssh/known_hosts
# Provide read access to owner (octal value code: 400) to known_hosts with chmod:
-
chmod 400 ~/.ssh/known_hosts
test_conda_ubuntu
:
stage
:
test
image
:
ubuntu:16.04
script
:
# Install necessary apps like git and mesa-utils (needed for GL):
-
apt-get update
-
apt-get install -y curl bzip2 git mesa-utils
# Install miniconda:
-
curl -O -L https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-
chmod +x Miniconda3-latest-Linux-x86_64.sh
-
./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3
-
export PATH="/opt/miniconda3/bin:${PATH}"
# Install requirements for pyramid:
-
conda info --envs
-
conda env create -q
# -q: quiet/ no progressbar, because it spams the log!
-
source activate pyramid
-
conda info --envs
-
conda uninstall mayavi vtk -y
# TODO: necessary, because mayavi does not play nice with qt5!
-
conda install pyqt=5
# TODO: This is needed for tests to run, but breaks mayavi (not used)!
# Install jutil via secure ssh connection:
-
pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
# Execute tests:
-
python setup.py test
test_miniconda
:
stage
:
test
image
:
continuumio/miniconda3
script
:
# Install requirements:
# Install necessary apps like git and mesa-utils (needed for GL):
-
apt-get update
-
apt-get install -y curl bzip2 git mesa-utils
# Install requirements for pyramid:
-
conda info --envs
-
conda env create -q
# -q: quiet/ no progressbar, because it spams the log!
-
source activate pyramid
-
conda info --envs
-
conda install pyqt=5.6.0 -y
# This is needed for tests to run, but breaks mayavi (not used)!
-
conda uninstall mayavi vtk -y
# TODO: necessary, because mayavi does not play nice with qt5!
-
conda install pyqt=5
# TODO: This is needed for tests to run, but breaks mayavi (not used)!
# Install jutil via secure ssh connection:
-
pip install git+ssh://gitlab@iffgit.fz-juelich.de/unger/jutil.git
# Execute tests:
-
python setup.py test
test_basic
:
stage
:
test
image
:
python:3.5
script
:
-
python --version
This diff is collapsed.
Click to expand it.
pyramid/kernel.py
+
2
−
0
View file @
14590e47
...
...
@@ -100,9 +100,11 @@ class Kernel(object):
u
=
np
.
linspace
(
-
(
u_dim
-
1
),
u_dim
-
1
,
num
=
2
*
u_dim
-
1
)
v
=
np
.
linspace
(
-
(
v_dim
-
1
),
v_dim
-
1
,
num
=
2
*
v_dim
-
1
)
uu
,
vv
=
np
.
meshgrid
(
u
,
v
)
# TODO: u, v are coordinates, rename self.u/v to self.kern_u/v!
self
.
u
=
np
.
empty
(
self
.
dim_kern
,
dtype
=
dtype
)
self
.
v
=
np
.
empty
(
self
.
dim_kern
,
dtype
=
dtype
)
self
.
u
[...]
=
coeff
*
self
.
_get_elementary_phase
(
geometry
,
uu
,
vv
,
a
)
# TODO: The minus sign belongs into the phasemapper (debatable)!
self
.
v
[...]
=
coeff
*
-
self
.
_get_elementary_phase
(
geometry
,
vv
,
uu
,
a
)
# Include perturbed reference wave:
if
prw_vec
is
not
None
:
...
...
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