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

Commit

Permalink
Mac jenkins (#1454)
Browse files Browse the repository at this point in the history
* add stage for macos jenkins worker

* still need the "cd build &&..." invocation

* we use pip3 now
  • Loading branch information
Chad Dougherty authored and pervazea committed Jul 30, 2018
1 parent 7aa41ae commit 91c082d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pipeline {
agent any
agent none
stages {
stage('Build') {
parallel {
Expand Down Expand Up @@ -95,6 +95,21 @@ pipeline {
}
}

stage('macOS 10.13/Apple LLVM version 9.1.0 (Debug)') {
agent { label 'macos' }
steps {
sh 'sudo /bin/bash -c "source ./script/installation/packages.sh"'
sh 'python script/validators/source_validator.py'
sh 'mkdir build'
sh 'cd build && cmake -DCMAKE_PREFIX_PATH=`llvm-config-3.7 --prefix` -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address -DCOVERALLS=False .. && make -j4'
sh 'cd build && ASAN_OPTIONS=detect_container_overflow=0 make check -j4'
sh 'cd build && make install'
sh 'cd build && bash ../script/testing/psql/psql_test.sh'
sh 'cd build && python ../script/validators/jdbc_validator.py'
sh 'cd build && ASAN_OPTIONS=detect_container_overflow=0 python ../script/testing/junit/run_junit.py'
}
}

// stage('Debian Stretch/gcc-6.3.0/llvm-3.8.1 (Debug)') {
// agent { docker { image 'debian:stretch' } }
// steps {
Expand Down
2 changes: 1 addition & 1 deletion script/installation/packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function install_protobuf3.4.0() {

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

0 comments on commit 91c082d

Please sign in to comment.