Commit d4dc7de7 authored by André Anjos's avatar André Anjos 💬

[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
......@@ -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",
......
......@@ -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>
......
......@@ -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;
......
#!/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))
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment