add .dockerignore

This commit is contained in:
Girish Ramakrishnan 2015-11-24 19:47:03 -08:00
parent 6d803891e9
commit cc4222fdbc
5 changed files with 16 additions and 1 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
node_modules

View File

@ -1 +1,2 @@
node_modules/ node_modules/

View File

@ -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. 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 cd gogs-app/test

View File

@ -14,6 +14,8 @@
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"mocha": "^2.3.4", "mocha": "^2.3.4",
"rimraf": "^2.4.4", "rimraf": "^2.4.4",
"selenium-server-standalone-jar": "^2.47.1",
"selenium-webdriver": "^2.48.2",
"superagent": "^1.4.0" "superagent": "^1.4.0"
} }
} }

View File

@ -9,13 +9,21 @@ var execSync = require('child_process').execSync,
mkdirp = require('mkdirp'), mkdirp = require('mkdirp'),
path = require('path'), path = require('path'),
rimraf = require('rimraf'), rimraf = require('rimraf'),
superagent = require('superagent'); superagent = require('superagent'),
webdriver = require('selenium-webdriver');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
describe('Application life cycle test', function () { describe('Application life cycle test', function () {
this.timeout(0); 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 LOCATION = 'test' + Date.now();
var app; var app;
var username = process.env.USERNAME; var username = process.env.USERNAME;