1 parent ed3781a commit 3b3aaf6Copy full SHA for 3b3aaf6
1 file changed
TESTING.md
@@ -3,3 +3,44 @@
3
Testing is a project specific concern. That being said, each project may use a jenkins pipeline to setup CI and CD for the project.
4
5
We use [jenkins-vagrant](https://github.com/etclabscore/jenkins-vagrant)
6
+
7
+Here is an example jenkins file that runs node project tests in each of osx, linux and windows:
8
9
+```yaml
10
+pipeline {
11
+ agent none
12
+ stages {
13
+ stage('Run Tests') {
14
+ parallel {
15
+ stage('test') {
16
+ agent {
17
+ label 'macos'
18
+ }
19
+ steps {
20
+ sh 'npm install'
21
+ sh 'npm test'
22
23
24
+ stage('linux') {
25
26
+ label 'linux'
27
28
29
30
31
32
33
+ stage('windows') {
34
35
+ label 'windows'
36
37
38
+ bat 'npm install'
39
+ bat 'npm test'
40
41
42
43
44
45
+}
46
+```
0 commit comments