Skip to content

Commit

Permalink
fix: add simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ authored Feb 21, 2019
1 parent ed3781a commit 3b3aaf6
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,44 @@
Testing is a project specific concern. That being said, each project may use a jenkins pipeline to setup CI and CD for the project.

We use [jenkins-vagrant](https://github.com/etclabscore/jenkins-vagrant)

Here is an example jenkins file that runs node project tests in each of osx, linux and windows:

```yaml
pipeline {
agent none
stages {
stage('Run Tests') {
parallel {
stage('test') {
agent {
label 'macos'
}
steps {
sh 'npm install'
sh 'npm test'
}
}
stage('linux') {
agent {
label 'linux'
}
steps {
sh 'npm install'
sh 'npm test'
}
}
stage('windows') {
agent {
label 'windows'
}
steps {
bat 'npm install'
bat 'npm test'
}
}
}
}
}
}
```

0 comments on commit 3b3aaf6

Please sign in to comment.