mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-15 07:48:41 +00:00
Add test job to CircleCI (#1235)
* Do not compile contrib when running screenshotter * Add test job to CircleCI * Update config.yml * Fail if PR exists but running on the forked repo * Update Screenshotter README.md * Store artifact at the root * Add CircleCI badge * Add `codecov` to CircleCI * Change build directory to `dist`
This commit is contained in:
committed by
Kevin Barabash
parent
e454eb3b3e
commit
83e8eac0a5
@@ -48,10 +48,9 @@ fashion are well suited for visual inspection, but for exact binary
|
||||
comparisons it would be neccessary to carefully set up the environment
|
||||
to match the one used by the Docker approach.
|
||||
|
||||
You can also verify and generate screenshots online using a CI(continuous
|
||||
integration) service. Fork the project, enable [CircleCI](https://circleci.com/) on your repository,
|
||||
and push your changes. Diffs and generated screenshots are available at
|
||||
build artifacts.
|
||||
Screenshots can also be verified and generated by opening a pull request.
|
||||
Diffs and generated screenshots are available at the `Artifacts` section
|
||||
of CircleCI builds.
|
||||
|
||||
## Choosing the list of test cases
|
||||
|
||||
|
@@ -14,7 +14,7 @@ const firefox = require("selenium-webdriver/firefox");
|
||||
|
||||
const webpack = require('webpack');
|
||||
const webpackDevServer = require("webpack-dev-server");
|
||||
const webpackConfig = require("../../webpack.dev");
|
||||
const webpackConfig = require("../../webpack.dev")[0];
|
||||
const data = require("../../test/screenshotter/ss_data");
|
||||
|
||||
// Change to KaTeX root directory so that webpack (in particular
|
||||
@@ -162,7 +162,7 @@ function startServer() {
|
||||
}
|
||||
const port = Math.floor(Math.random() * (maxPort - minPort)) + minPort;
|
||||
const compiler = webpack(webpackConfig);
|
||||
const wds = new webpackDevServer(compiler, webpackConfig[0].devServer);
|
||||
const wds = new webpackDevServer(compiler, webpackConfig.devServer);
|
||||
const server = wds.listen(port);
|
||||
server.once("listening", function() {
|
||||
devServer = wds;
|
||||
|
Reference in New Issue
Block a user