Skip to content
Permalink
Browse files

Improved Jenkins configuration

  • Loading branch information...
yandeu committed May 7, 2019
1 parent d74eed5 commit 6ada28f044d30539a65191ee48707642ea3af626
Showing with 68 additions and 39 deletions.
  1. +55 −35 Jenkinsfile
  2. +4 −0 README.md
  3. +5 −0 jest-puppeteer.config.js
  4. +4 −4 package.json
@@ -4,68 +4,88 @@ pipeline {

stages {

stage("NodeJS 8"){
stage('Install Packages') {
tools {
nodejs "NodeJS 8"
nodejs 'NodeJS 8'
}
steps{
git 'https://github.com/geckosio/geckos.io'
sh 'node --version'
sh 'npm --version'
sh 'npm install'
sh 'sleep 1m'
cleanWs()
steps {
timeout(15) {
sh 'npm install'
sh 'npm run installdev'
}
}
}

stage("NodeJS 10") {
stage('Test node 8') {
tools {
nodejs "NodeJS 10"
nodejs 'NodeJS 8'
}
steps {
git 'https://github.com/geckosio/geckos.io'
sh 'node --version'
sh 'npm --version'
sh 'npm install'
sh 'sleep 1m'
cleanWs()
timeout(5) {
retry(3) {
sleep 10
sh 'node --version'
sh 'npm --version'
sh 'npm test'
}
}
}
}

stage("NodeJS 11") {
stage('Test node 10') {
tools {
nodejs "NodeJS 11"
nodejs 'NodeJS 10'
}
steps {
git 'https://github.com/geckosio/geckos.io'
sh 'node --version'
sh 'npm --version'
sh 'npm install'
sh 'sleep 1m'
cleanWs()
timeout(5) {
retry(3) {
sleep 10
sh 'node --version'
sh 'npm --version'
sh 'npm test'
}
}
}
}

stage("NodeJS 12") {
stage('Test node 11') {
tools {
nodejs "NodeJS 12"
nodejs 'NodeJS 11'
}
steps {
git 'https://github.com/geckosio/geckos.io'
sh 'node --version'
sh 'npm --version'
sh 'npm install'
sh 'sleep 1m'
cleanWs()
timeout(5) {
retry(3) {
sleep 10
sh 'node --version'
sh 'npm --version'
sh 'npm test'
}
}
}
}

stage('Test node 12'){
tools {
nodejs 'NodeJS 12'
}
steps{
timeout(5) {
retry(3) {
sleep 10
sh 'node --version'
sh 'npm --version'
sh 'npm test'
}
}
}
}

}

post {
/* post {
always {
cleanWs()
}
}
} */

}
@@ -196,6 +196,10 @@ _TODO: Note some differences here._
| Chat App | ● | | ● |
| Any other App with Real-Time communication | ● | ● | ● |

## Development

To help developing geckos.io, install this repository via **`npm install`** and **`npm run installdev`**. Test it with **`npm test`**. Then start the development server with **`npm run dev`**.

## License

The BSD 3-Clause License (BSD-3-Clause) 2019 - [Yannick Deubel](https://github.com/yandeu). Please have a look at the [LICENSE](LICENSE) for more details.
@@ -0,0 +1,5 @@
module.exports = {
launch: {
args: ['--no-sandbox', '--disable-setuid-sandbox']
}
}
@@ -10,13 +10,13 @@
"link-set:client": "cd packages/client/ && npm link @geckos.io/common",
"link-set:server": "cd packages/server/ && npm link @geckos.io/common",
"link-set:root": "npm link @geckos.io/client && npm link @geckos.io/server",
"link": "npm-run-all link:* link-set:*",
"postinstall": "npm run link && npm run build",
"link": "npm run link:common && npm run link:server && npm run link:client && npm run link-set:client && npm run link-set:server && npm run link-set:root",
"installdev": "npm run link && npm run build",
"bundle": "cd packages/client && npm run bundle:latest",
"build:common": "tsc --build packages/common/tsconfig.json",
"build:client": "tsc --build packages/client/tsconfig.json",
"build:server": "tsc --build packages/server/tsconfig.json",
"build": "npm-run-all build:*",
"build": "npm run build:common && npm run build:client && npm run build:server",
"watch:common": "tsc --build --watch packages/common/tsconfig.json",
"watch:client": "tsc --build --watch packages/client/tsconfig.json",
"watch:server": "tsc --build --watch packages/server/tsconfig.json",
@@ -29,7 +29,7 @@
"publish:server": "cd packages/server/ && npm publish",
"publish:client": "cd packages/client/ && npm publish",
"publish-packages": "npm-run-all publish:*",
"test": "jest --config jest.config.js --detectOpenHandles"
"test": "jest --config jest.config.js --detectOpenHandles --runInBand --forceExit"
},
"keywords": [
"realtime",

0 comments on commit 6ada28f

Please sign in to comment.
You can’t perform that action at this time.