-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from UlisesGascon/master
Feature: CI with Travis
- Loading branch information
Showing
10 changed files
with
88 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,7 @@ Icon? | |
.idea/** | ||
|
||
# Zap output | ||
report*.html | ||
report*.html | ||
|
||
# e2e | ||
test/e2e/screenshots/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
sudo: required | ||
language: node_js | ||
services: | ||
- docker | ||
node_js: | ||
- v12 | ||
|
||
## Cache NPM folder and Cypress binary | ||
## to avoid downloading Cypress again and again | ||
cache: | ||
directories: | ||
- ~/.npm | ||
- ~/.cache | ||
|
||
override: | ||
# use the new "ci" command for fastest installs on CI | ||
- npm ci | ||
- npm run cy:verify | ||
|
||
before_script: | ||
## we use the '&' ampersand which tells | ||
## travis to run this process in the background | ||
## else it would block execution and hang travis | ||
- docker run -d -p 27017:27017 mongo:4.0 | ||
- docker ps -a | ||
- NODE_ENV=test npm start -- --silent & | ||
|
||
script: | ||
- npm run test:ci | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
// default app configuration | ||
|
||
var port = process.env.PORT || 4000; | ||
var db = process.env.NODE_ENV === 'test' ? "mongodb://localhost:27017/nodegoat" : "mongodb://nodegoat:[email protected]:59217/nodegoat"; | ||
db = db || process.env.MONGOLAB_URI || process.env.MONGODB_URI; | ||
|
||
module.exports = { | ||
port: process.env.PORT || 4000, | ||
db: process.env.MONGOLAB_URI || process.env.MONGODB_URI || "mongodb://nodegoat:[email protected]:59217/nodegoat", | ||
port: port, | ||
db: db, | ||
cookieSecret: "session_cookie_secret_key_here", | ||
cryptoKey: "a_secure_key_for_crypto_here", | ||
cryptoAlgo: "aes256", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters