Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 91c082d

Browse files
Chad Doughertypervazea
authored andcommitted
Mac jenkins (#1454)
* add stage for macos jenkins worker * still need the "cd build &&..." invocation * we use pip3 now
1 parent 7aa41ae commit 91c082d

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

Jenkinsfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pipeline {
2-
agent any
2+
agent none
33
stages {
44
stage('Build') {
55
parallel {
@@ -95,6 +95,21 @@ pipeline {
9595
}
9696
}
9797

98+
stage('macOS 10.13/Apple LLVM version 9.1.0 (Debug)') {
99+
agent { label 'macos' }
100+
steps {
101+
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
102+
sh 'python script/validators/source_validator.py'
103+
sh 'mkdir build'
104+
sh 'cd build && cmake -DCMAKE_PREFIX_PATH=`llvm-config-3.7 --prefix` -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
105+
sh 'cd build && ASAN_OPTIONS=detect_container_overflow=0 make check -j4'
106+
sh 'cd build && make install'
107+
sh 'cd build && bash ../script/testing/psql/psql_test.sh'
108+
sh 'cd build && python ../script/validators/jdbc_validator.py'
109+
sh 'cd build && ASAN_OPTIONS=detect_container_overflow=0 python ../script/testing/junit/run_junit.py'
110+
}
111+
}
112+
98113
// stage('Debian Stretch/gcc-6.3.0/llvm-3.8.1 (Debug)') {
99114
// agent { docker { image 'debian:stretch' } }
100115
// steps {

script/installation/packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function install_protobuf3.4.0() {
7474

7575
# Utility function for installing tensorflow components of python/C++
7676
function install_tf() {
77-
if pip show -q tensorflow && [ -d /usr/local/include/tensorflow/c ]; then
77+
if pip3 show -q tensorflow && [ -d /usr/local/include/tensorflow/c ]; then
7878
echo "tensorflow already installed"
7979
return
8080
fi

0 commit comments

Comments
 (0)