mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-23 08:31:00 +00:00
add .dockerignore
This commit is contained in:
parent
6d803891e9
commit
cc4222fdbc
5 changed files with 16 additions and 1 deletions
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
|
1
test/.gitignore → .gitignore
vendored
1
test/.gitignore → .gitignore
vendored
|
@ -1 +1,2 @@
|
|||
node_modules/
|
||||
|
|
@ -27,6 +27,8 @@ cloudron install
|
|||
|
||||
The e2e tests are located in the `test/` folder and require [nodejs](http://nodejs.org/). They are creating a fresh build, install the app on your Cloudron, perform tests, backup, restore and test if the repos are still ok. The tests expect port 29418 to be available.
|
||||
|
||||
wget https://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.45.0.jar
|
||||
|
||||
```
|
||||
cd gogs-app/test
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
"mkdirp": "^0.5.1",
|
||||
"mocha": "^2.3.4",
|
||||
"rimraf": "^2.4.4",
|
||||
"selenium-server-standalone-jar": "^2.47.1",
|
||||
"selenium-webdriver": "^2.48.2",
|
||||
"superagent": "^1.4.0"
|
||||
}
|
||||
}
|
||||
|
|
10
test/test.js
10
test/test.js
|
@ -9,13 +9,21 @@ var execSync = require('child_process').execSync,
|
|||
mkdirp = require('mkdirp'),
|
||||
path = require('path'),
|
||||
rimraf = require('rimraf'),
|
||||
superagent = require('superagent');
|
||||
superagent = require('superagent'),
|
||||
webdriver = require('selenium-webdriver');
|
||||
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
|
||||
describe('Application life cycle test', function () {
|
||||
this.timeout(0);
|
||||
|
||||
before(function () {
|
||||
var seleniumJar= require('selenium-server-standalone-jar');
|
||||
var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
|
||||
var server = new SeleniumServer(seleniumJar.path, { port: 4444 });
|
||||
server.start();
|
||||
});
|
||||
|
||||
var LOCATION = 'test' + Date.now();
|
||||
var app;
|
||||
var username = process.env.USERNAME;
|
||||
|
|
Loading…
Reference in a new issue