Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
d4dc7de7
Commit
d4dc7de7
authored
Feb 24, 2019
by
André Anjos
💬
Browse files
[conda][test] Try a fix for not depending on a hard-coded test path
parent
8b3cfe0c
Pipeline
#27444
failed with stages
in 33 minutes and 32 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
conda/js/package.json
View file @
d4dc7de7
...
...
@@ -5,7 +5,7 @@
"main"
:
"index.js"
,
"scripts"
:
{
"start"
:
"cross-env NODE_ENV=debug webpack-dev-server --hot"
,
"prebuild"
:
"rimraf ../
../beat/
editor/js"
,
"prebuild"
:
"rimraf ../editor/js"
,
"build"
:
"cross-env NODE_ENV=production webpack"
,
"test-start"
:
"cross-env BABEL_ENV=test NODE_ENV=test karma start --no-single-run"
,
"test"
:
"cross-env BABEL_ENV=test NODE_ENV=test karma start"
,
...
...
conda/js/src/components/Settings.jsx
View file @
d4dc7de7
...
...
@@ -57,7 +57,7 @@ export class Settings extends React.PureComponent<Props> {
)
}
</
Form
>
<
a
href
=
'https://gitlab.idiap.ch/
jdiefenbaugh
/beat.editor'
>
Github
</
a
>
<
a
href
=
'https://gitlab.idiap.ch/
beat
/beat.editor'
>
Github
</
a
>
</
ModalBody
>
<
ModalFooter
>
<
Button
color
=
"primary"
onClick
=
{
this
.
save
}
>
Write Settings to server
</
Button
>
...
...
conda/js/webpack.config.js
View file @
d4dc7de7
...
...
@@ -5,7 +5,7 @@ const VisualizerPlugin = require('webpack-visualizer-plugin');
const
HtmlWebpackPlugin
=
require
(
'
html-webpack-plugin
'
);
const
TerserPlugin
=
require
(
'
terser-webpack-plugin
'
)
const
dist
=
resolve
(
__dirname
,
'
../
../beat/
editor/js
'
);
const
dist
=
resolve
(
__dirname
,
'
../editor/js
'
);
const
isExternal
=
(
module
)
=>
module
.
context
&&
module
.
context
.
indexOf
(
'
node_modules
'
)
===
-
1
;
...
...
conda/linkeditor.py
0 → 100644
View file @
d4dc7de7
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''Ensures the editor JS code is available during tests'''
import
os
# destination "linked" directory
dest
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
sys
.
argv
[
0
])),
'editor'
)
if
os
.
path
.
exists
(
dest
):
os
.
unlink
(
dest
)
import
pkg_resources
import
beat.editor
src
=
pkg_resources
.
resource_filename
(
beat
.
editor
.
__name__
,
''
)
os
.
symlink
(
src
,
dest
)
print
(
'%s -> %s'
%
(
src
,
dest
))
conda/meta.yaml
View file @
d4dc7de7
...
...
@@ -44,6 +44,7 @@ test:
files
:
-
js
-
linkeditor.py
requires
:
-
bob-devel {{ bob_devel }}.*
...
...
@@ -63,7 +64,7 @@ test:
-
beat editor serve --help
-
nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
-
export CHROMIUM_BIN=chromium-browser
-
if [ -n "${BEAT_BROWSER_TESTS}" ]; then cd js; npm install; npm run build; npm test; cd -; fi
-
if [ -n "${BEAT_BROWSER_TESTS}" ]; then
python linkeditor.py;
cd js; npm install; npm run build; npm test; cd -; fi
-
unset CHROMIUM_BIN
-
sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
-
if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment