Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PyFstat
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gregory Ashton
PyFstat
Commits
6057a8ed
Commit
6057a8ed
authored
Aug 06, 2019
by
Gregory Ashton
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gitlab-ci-runner-setup' into 'master'
Gitlab ci runner setup See merge request
!22
parents
d569dc90
19180ede
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
12 deletions
+42
-12
.gitlab-ci.yml
.gitlab-ci.yml
+39
-10
pyfstat/make_sfts.py
pyfstat/make_sfts.py
+2
-2
tests.py
tests.py
+1
-0
No files found.
.gitlab-ci.yml
View file @
6057a8ed
test_app
:
stages
:
-
Test
-
Static Analysis
variables
:
VENV_DIR
:
$CI_PROJECT_DIR/../venv-pyFstat
INSTALLER_DIR
:
$CI_PROJECT_DIR/install-cw-software
pytest
:
stage
:
Test
tags
:
[
pyFstat
]
before_script
:
-
python3 -m venv $VENV_DIR
-
source ${VENV_DIR}/bin/activate
-
pip install --upgrade pip
-
pip install -r requirements.txt
-
pip install lalsuite
-
pip install pytest
-
export LAL_DATA_PATH=$HOME/ephemeris
-
export LALPULSAR_DATADIR=$LAL_DATA_PATH
script
:
-
. /home/user1/lalsuite-install/etc/lalapps-user-env.sh
-
/home/user1/anaconda2/bin/python tests.py Writer
-
/home/user1/anaconda2/bin/python tests.py par
-
/home/user1/anaconda2/bin/python tests.py BaseSearchClass
-
/home/user1/anaconda2/bin/python tests.py ComputeFstat
-
/home/user1/anaconda2/bin/python tests.py SemiCoherentSearch
-
/home/user1/anaconda2/bin/python tests.py SemiCoherentGlitchSearch
-
/home/user1/anaconda2/bin/python tests.py MCMCSearch
-
/home/user1/anaconda2/bin/python tests.py GridSearch
-
pip install -e $CI_PROJECT_DIR
# make sure to test *installed* version of pyFstat
-
(cd .. && pytest $CI_PROJECT_DIR/tests.py --log-file=$CI_PROJECT_DIR/tests.log)
artifacts
:
paths
:
-
./*.log
name
:
testlogs
when
:
always
expire_in
:
24h
static
:
stage
:
Static Analysis
tags
:
[
pyFstat
]
script
:
-
source ${VENV_DIR}/bin/activate
-
black --check .
# - flake8 . ## not ready
pyfstat/make_sfts.py
View file @
6057a8ed
...
...
@@ -284,8 +284,8 @@ transientTau = {:10.0f}\n"""
logging
.
info
(
"Checking contents of cff file"
)
cl_dump
=
"lalapps_SFTdumpheader {} | head -n 20"
.
format
(
self
.
sftfilepath
)
output
=
helper_functions
.
run_commandline
(
cl_dump
)
calls
=
[
line
for
line
in
output
.
split
(
"
\n
"
)
if
line
[:
3
]
==
"lal"
]
if
calls
[
0
]
==
cl_mfd
:
found
=
[
True
for
line
in
output
.
split
(
"
\n
"
)
if
line
[
-
len
(
cl_mfd
)
:]
==
cl_mfd
]
if
any
(
found
)
:
logging
.
info
(
"Contents matched, use old sft file"
)
return
True
else
:
...
...
tests.py
View file @
6057a8ed
...
...
@@ -7,6 +7,7 @@ import lalpulsar
import
logging
import
time
class
Test
(
unittest
.
TestCase
):
outdir
=
"TestData"
...
...
David Keitel
@dkeitel
mentioned in issue
#17 (closed)
·
Nov 04, 2019
mentioned in issue
#17 (closed)
mentioned in issue #17
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