Skip to content
Snippets Groups Projects
Commit 566518e4 authored by valentin.emiya's avatar valentin.emiya
Browse files

update CI

parent 0bd7c537
No related branches found
No related tags found
No related merge requests found
Pipeline #5096 failed
...@@ -8,6 +8,8 @@ tests: ...@@ -8,6 +8,8 @@ tests:
- pip3 install --no-deps ltfatpy madarrays yafe skpomade pandas - pip3 install --no-deps ltfatpy madarrays yafe skpomade pandas
- pip3 install --no-deps . - pip3 install --no-deps .
- python3 -c "from tffpy.utils import generate_config; generate_config()" - python3 -c "from tffpy.utils import generate_config; generate_config()"
- pwd
- python3 -c "from configparser import ConfigParser; from pathlib import Path; config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', str(Path(__file__.parent / 'data')); config
- pytest-3 - pytest-3
# generate the documentation # generate the documentation
...@@ -23,6 +25,9 @@ pages: ...@@ -23,6 +25,9 @@ pages:
- pip3 install --no-deps . - pip3 install --no-deps .
- python3 setup.py build_sphinx - python3 setup.py build_sphinx
- python3 -c "from tffpy.utils import generate_config; generate_config()" - python3 -c "from tffpy.utils import generate_config; generate_config()"
- pwd
- python3 -c "from configparser import ConfigParser; from pathlib import Path; config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', str(Path(__file__.parent / 'data')); config
- .write(open('/root/.config/tffpy.conf', 'w'))"
- cp -r build/sphinx/html public - cp -r build/sphinx/html public
artifacts: artifacts:
paths: paths:
......
...@@ -83,8 +83,8 @@ def generate_config(): ...@@ -83,8 +83,8 @@ def generate_config():
config.set('DATA', '# path to data') config.set('DATA', '# path to data')
config.set('DATA', 'data_path', '/to/be/completed/tffpy/data') config.set('DATA', 'data_path', '/to/be/completed/tffpy/data')
config_file = get_config_file() config_file = get_config_file()
with open(config_file, 'w') as config_file: with open(config_file, 'w') as file:
config.write(config_file) config.write(file)
print('Configuration file created: {}. Please update it with your data ' print('Configuration file created: {}. Please update it with your data '
'path.'.format(config_file)) 'path.'.format(config_file))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment