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
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
b16b2e28
Commit
b16b2e28
authored
5 years ago
by
Reinhard Prix
Browse files
Options
Downloads
Patches
Plain Diff
gitlab-ci: run all tests and black syntax check
- run against pip-installed lalsuite - use python3 venv
parent
607a75d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+38
-10
38 additions, 10 deletions
.gitlab-ci.yml
with
38 additions
and
10 deletions
.gitlab-ci.yml
+
38
−
10
View file @
b16b2e28
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
script
:
-
source ${VENV_DIR}/bin/activate
-
black --check .
# - flake8 . ## not ready
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