Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tff2020
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
Container registry
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
Show more breadcrumbs
skmad-suite
tff2020
Commits
be286e9e
Commit
be286e9e
authored
5 years ago
by
valentin.emiya
Browse files
Options
Downloads
Patches
Plain Diff
update CI
parent
1235d530
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-5
2 additions, 5 deletions
.gitlab-ci.yml
python/tffpy/tests/ci_config.py
+39
-0
39 additions, 0 deletions
python/tffpy/tests/ci_config.py
with
41 additions
and
5 deletions
.gitlab-ci.yml
+
2
−
5
View file @
be286e9e
...
@@ -7,9 +7,7 @@ tests:
...
@@ -7,9 +7,7 @@ tests:
-
cd python
-
cd python
-
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 tffpy/tests/ci_confi.py
-
pwd
-
python3 -c "from configparser import ConfigParser; from pathlib import Path; config = ConfigParser(); config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', '/builds/skmad-suite/tff2020/data'); config.write(open('/root/.config/tffpy.conf', 'w'))"
-
pytest-3
-
pytest-3
# generate the documentation
# generate the documentation
...
@@ -24,8 +22,7 @@ pages:
...
@@ -24,8 +22,7 @@ pages:
-
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 setup.py build_sphinx
-
python3 setup.py build_sphinx
-
python3 -c "from tffpy.utils import generate_config; generate_config()"
-
python3 tffpy/tests/ci_confi.py
-
python3 -c "from configparser import ConfigParser; from pathlib import Path; config = ConfigParser(); config.read('/root/.config/tffpy.conf'); config.set('DATA', 'data_path', '/builds/skmad-suite/tff2020/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
:
...
...
This diff is collapsed.
Click to expand it.
python/tffpy/tests/ci_config.py
0 → 100644
+
39
−
0
View file @
be286e9e
# -*- coding: utf-8 -*-
"""
Create configuration files for continuous integration.
.. moduleauthor:: Valentin Emiya
"""
from
configparser
import
ConfigParser
from
pathlib
import
Path
import
os
from
yafe.utils
import
ConfigParser
as
YafeConfigParser
from
tffpy.utils
import
get_config_file
,
generate_config
if
__name__
==
'
__main__
'
:
config_file
=
get_config_file
()
if
not
config_file
.
exists
():
generate_config
()
config
=
ConfigParser
()
config
.
read
(
config_file
)
data_path
=
Path
(
__file__
).
parent
.
parent
/
'
data
'
print
(
'
Data path:
'
,
str
(
data_path
))
config
.
set
(
'
DATA
'
,
'
data_path
'
,
str
(
data_path
))
config
.
write
(
open
(
config_file
,
'
w
'
))
yafe_config_file
=
YafeConfigParser
.
_config_path
print
(
yafe_config_file
)
if
not
yafe_config_file
.
exists
():
yafe_user_path
=
Path
(
os
.
path
.
expanduser
(
'
~
'
))
/
'
yafe_user_path
'
yafe_logger_path
=
Path
(
os
.
path
.
expanduser
(
'
~
'
))
/
'
yafe_logger_path
'
print
(
yafe_user_path
)
print
(
yafe_logger_path
)
yafe_user_path
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
yafe_logger_path
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
YafeConfigParser
.
generate_config
()
yafe_config_parser
=
YafeConfigParser
()
yafe_config_parser
.
set
(
'
USER
'
,
'
data_path
'
,
str
(
yafe_user_path
))
yafe_config_parser
.
set
(
'
LOGGER
'
,
'
path
'
,
str
(
yafe_logger_path
))
yafe_config_parser
.
write
(
open
(
yafe_config_file
,
'
w
'
))
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