Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
waveforms
lvcnrpy
Commits
032ea7db
Commit
032ea7db
authored
Dec 11, 2016
by
Edward Fauchon-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml to use lvcnrpy docker image
parent
b52a32bb
Pipeline
#2084
passed with stage
in 2 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
30 deletions
+2
-30
.gitlab-ci.yml
.gitlab-ci.yml
+2
-30
No files found.
.gitlab-ci.yml
View file @
032ea7db
# Setup Python test environment with cache as Duncan does
cache
:
paths
:
-
apt-cache/
-
pip-cache/
image
:
galadirith/lvcnrpy:v1.0.0
# Setup Python test environment
before_script
:
# Configure apt-get
-
export APT_CACHE_DIR=`pwd`/apt-cache
-
export PIP_CACHE_DIR=`pwd`/pip-cache
-
mkdir -pv $APT_CACHE_DIR $PIP_CACHE_DIR
# Trust maintainer of lscsoft-archive-keyring package
-
gpg --keyserver keys.gnupg.net --recv-keys CE050D236DB6FA3F
-
gpg -a --export CE050D236DB6FA3F | apt-key add -
# tdd LSCSoft Debian Jessie archive
-
echo deb http://software.ligo.org/lscsoft/debian jessie contrib >> /etc/apt/sources.list
-
apt-get -o Dir::Cache::Archives="$APT_CACHE_DIR" -yqq update
-
apt-get -o Dir::Cache::Archives="$APT_CACHE_DIR" -yqq install lscsoft-archive-keyring
-
apt-get -o Dir::Cache::Archives="$APT_CACHE_DIR" -yqq update
# Install packages to setup Python test environment
-
>
apt-get -o Dir::Cache::Archives="$APT_CACHE_DIR" -yqq install
wget
pkg-config
python
python-pip
python-numpy
python-scipy
python-matplotlib
python-h5py
python-pytest
# Define LVCNR_DATADIR (only needs to exist, not used for tests)
-
export LVCNR_DATADIR=`pwd`/lvc_nr
-
mkdir -pv $LVCNR_DATADIR
# Install local `lvcnrpy` using pip
-
pip install
--download-cache="$PIP_CACHE_DIR"
.
-
pip install .
# Run `lvcnrpy` tests
test
:
...
...
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