mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Testing travis setup
This commit is contained in:
parent
6298e2c498
commit
6ecfefe9c8
|
@ -1,4 +1,9 @@
|
|||
language: java
|
||||
sudo: false
|
||||
|
||||
addons:
|
||||
firefox: "53.0"
|
||||
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
|
||||
|
@ -35,7 +40,9 @@ script:
|
|||
- mvn -e test -P \!htmlUnit
|
||||
- BASE_PATH=`pwd`
|
||||
- pushd tests/src/test/js
|
||||
- firefox index.html &
|
||||
- mkdir profile
|
||||
- cp user.js profile/user.js
|
||||
- firefox index.html -v --profile profile --setDefaultBrowser &
|
||||
- FIREFOX_PID=$!
|
||||
- node start.js $BASE_PATH/tests/target/js-tests
|
||||
- node start.js $BASE_PATH/html4j/target/js-tests
|
||||
|
|
|
@ -86,7 +86,6 @@
|
|||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.16</version>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
<argLine>-Xmx512m</argLine>
|
||||
<systemProperties>
|
||||
<teavm.junit.target>${project.build.directory}/js-tests</teavm.junit.target>
|
||||
|
|
|
@ -49,12 +49,11 @@ async function runAll() {
|
|||
|
||||
console.log("Running tests");
|
||||
|
||||
|
||||
const server = http.createServer((request, response) => {
|
||||
response.writeHead(404);
|
||||
response.end();
|
||||
});
|
||||
server.listen(9090, () => {
|
||||
server.listen({ host: "localhost", port: 9090 }, () => {
|
||||
console.log((new Date()) + ' Server is listening on port 9090');
|
||||
});
|
||||
|
||||
|
|
18
tests/src/test/js/user.js
Normal file
18
tests/src/test/js/user.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright 2017 Alexey Andreev.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
user_pref("browser.dom.window.dump.enabled", true);
|
||||
user_pref("browser.shell.checkDefaultBrowser", false);
|
Loading…
Reference in New Issue
Block a user