-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
108 lines (106 loc) · 4 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!groovy
pipeline {
agent none
options {
buildDiscarder(logRotator(numToKeepStr:'30'))
}
stages {
stage('CheckoutAndTest') {
parallel {
stage('FedoraGcc') {
agent { label "FedoraGcc" }
steps {
checkout scm
dir('Test') { sh """#!/bin/bash
hostname &&
ruby RootTest.rb -GNinja
"""}
}
}
stage('MacOSAir') {
agent { label "MacOSAir" }
steps {
checkout scm
dir('Test') { sh """#!/bin/bash
hostname &&
export PATH='$PATH:/usr/local/bin/' && ruby RootTest.rb -GNinja
"""}
}
}
stage('Raspbian') {
agent { label "Raspbian" }
steps {
checkout scm
dir('Test') { sh """#!/bin/bash
hostname &&
ruby RootTest.rb -GNinja
"""}
}
}
stage('UbuntuClang') {
agent { label "UbuntuClang" }
steps {
checkout scm
dir('Test') { sh """#!/bin/bash
hostname &&
export CC=`which clang` &&
export CXX=`which clang++` &&
ruby RootTest.rb -GNinja
"""}
}
}
stage('UbuntuEmscripten') {
agent { label "UbuntuEmscripten" }
steps {
checkout scm
dir('Test') { sh """#!/bin/bash
hostname &&
source ~/emsdk/emsdk_env.sh &&
export CMAKE_TOOLCHAIN_FILE=~/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake &&
export CC=`which emcc` &&
export CXX=`which em++` &&
ruby RootTest.rb -GNinja
"""}
}
}
stage('UbuntuGcc') {
agent { label "UbuntuGcc" }
steps {
checkout scm
dir('Test') { sh """#!/bin/bash
hostname &&
export CC=gcc && export CXX=g++ && ruby RootTest.rb -GNinja
"""}
}
}
stage('Windows10Mingw32') {
agent { label "Windows10Mingw32" }
steps {
checkout scm
dir('Test') { bat """
ruby RootTest.rb -G"Ninja" --force_32
"""}
}
}
stage('Windows10Mingw64') {
agent { label "Windows10Mingw64" }
steps {
checkout scm
dir('Test') { bat """
ruby RootTest.rb -G"Ninja"
"""}
}
}
stage('Windows10MSVC') {
agent { label "Windows10MSVC" }
steps {
checkout scm
dir('Test') { bat """
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvarsall.bat" x86_amd64 && ruby RootTest.rb -G"Visual Studio 16 2019"'
"""}
}
}
} // parallel
} // CheckoutAndTest
} // Stages
}