Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pep Covas Vidal
PyFstat
Commits
6057a8ed
Commit
6057a8ed
authored
5 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Plain Diff
Merge branch 'gitlab-ci-runner-setup' into 'master'
Gitlab ci runner setup See merge request
GregAshton/PyFstat!22
parents
d569dc90
19180ede
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+39
-10
39 additions, 10 deletions
.gitlab-ci.yml
pyfstat/make_sfts.py
+2
-2
2 additions, 2 deletions
pyfstat/make_sfts.py
tests.py
+1
-0
1 addition, 0 deletions
tests.py
with
42 additions
and
12 deletions
.gitlab-ci.yml
+
39
−
10
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
:
script
:
-
. /home/user1/lalsuite-install/etc/lalapps-user-env.sh
-
pip install -e $CI_PROJECT_DIR
-
/home/user1/anaconda2/bin/python tests.py Writer
# make sure to test *installed* version of pyFstat
-
/home/user1/anaconda2/bin/python tests.py par
-
(cd .. && pytest $CI_PROJECT_DIR/tests.py --log-file=$CI_PROJECT_DIR/tests.log)
-
/home/user1/anaconda2/bin/python tests.py BaseSearchClass
-
/home/user1/anaconda2/bin/python tests.py ComputeFstat
artifacts
:
-
/home/user1/anaconda2/bin/python tests.py SemiCoherentSearch
paths
:
-
/home/user1/anaconda2/bin/python tests.py SemiCoherentGlitchSearch
-
./*.log
-
/home/user1/anaconda2/bin/python tests.py MCMCSearch
name
:
testlogs
-
/home/user1/anaconda2/bin/python tests.py GridSearch
when
:
always
expire_in
:
24h
static
:
stage
:
Static Analysis
tags
:
[
pyFstat
]
script
:
-
source ${VENV_DIR}/bin/activate
-
black --check .
# - flake8 . ## not ready
This diff is collapsed.
Click to expand it.
pyfstat/make_sfts.py
+
2
−
2
View file @
6057a8ed
...
@@ -284,8 +284,8 @@ transientTau = {:10.0f}\n"""
...
@@ -284,8 +284,8 @@ transientTau = {:10.0f}\n"""
logging
.
info
(
"
Checking contents of cff file
"
)
logging
.
info
(
"
Checking contents of cff file
"
)
cl_dump
=
"
lalapps_SFTdumpheader {} | head -n 20
"
.
format
(
self
.
sftfilepath
)
cl_dump
=
"
lalapps_SFTdumpheader {} | head -n 20
"
.
format
(
self
.
sftfilepath
)
output
=
helper_functions
.
run_commandline
(
cl_dump
)
output
=
helper_functions
.
run_commandline
(
cl_dump
)
calls
=
[
lin
e
for
line
in
output
.
split
(
"
\n
"
)
if
line
[
:
3
]
==
"
lal
"
]
found
=
[
Tru
e
for
line
in
output
.
split
(
"
\n
"
)
if
line
[
-
len
(
cl_mfd
)
:]
==
cl_mfd
]
if
calls
[
0
]
==
cl_mfd
:
if
any
(
found
)
:
logging
.
info
(
"
Contents matched, use old sft file
"
)
logging
.
info
(
"
Contents matched, use old sft file
"
)
return
True
return
True
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
tests.py
+
1
−
0
View file @
6057a8ed
...
@@ -7,6 +7,7 @@ import lalpulsar
...
@@ -7,6 +7,7 @@ import lalpulsar
import
logging
import
logging
import
time
import
time
class
Test
(
unittest
.
TestCase
):
class
Test
(
unittest
.
TestCase
):
outdir
=
"
TestData
"
outdir
=
"
TestData
"
...
...
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