@@ -361,76 +361,6 @@ pipeline {
361361 }
362362 }
363363
364- <% unless ENV [ 'WINDOWS_ONLY' ] %>
365- stage('nix') {
366- matrix {
367- axes {
368- axis {
369- name 'PLATFORM'
370- values <%= nix_test_builds . map { |( label , dist , relno , arch ) | label . inspect } . join ( ", " ) %>
371- }
372- }
373-
374- agent { label PLATFORM }
375- stages {
376- stage("prep") {
377- steps {
378- dir("ws_${PLATFORM}") {
379- deleteDir()
380- unstash 'libcouchbase'
381- }
382- }
383- }
384- stage('build') {
385- environment {
386- CMAKE_BUILD_PARALLEL_LEVEL=8
387- }
388- steps {
389- dir("ws_${PLATFORM}") {
390- dir('build') {
391- sh('cmake -DCMAKE_BUILD_TYPE=<%= reltype %> ../libcouchbase')
392- sh("cmake --build . --target all ${VERBOSE.toBoolean() ? '--verbose' : ''}")
393- sh("cmake --build . --target alltests ${VERBOSE.toBoolean() ? '--verbose' : ''}")
394- }
395- }
396- stash(includes: "ws_${PLATFORM}/", name: "${PLATFORM}_build")
397- }
398- }
399- stage('test') {
400- <% if integration_enabled %>
401- when {
402- expression {
403- return !SKIP_TESTS.toBoolean()
404- }
405- }
406- <% end %>
407- options {
408- timeout(time: 60, unit: 'MINUTES')
409- }
410- environment {
411- <% if gtest_shuffle %>
412- GTEST_SHUFFLE=1
413- <% end %>
414- CTEST_PARALLEL_LEVEL=1
415- CTEST_OUTPUT_ON_FAILURE=1
416- }
417- post {
418- always {
419- junit(testResults: "ws_${PLATFORM}/build/*.xml", allowEmptyResults: true)
420- }
421- }
422- steps {
423- dir("ws_${PLATFORM}/build") {
424- sh("ctest --label-exclude contaminating ${VERBOSE.toBoolean() ? '--extra-verbose' : ''}")
425- sh("ctest --label-exclude normal ${VERBOSE.toBoolean() ? '--extra-verbose' : ''}")
426- }
427- }
428- }
429- }
430- }
431- }
432- <% end %>
433-
434364<% unless ENV [ 'LINUX_ONLY' ] %>
435365 stage('win') {
436366 matrix {
@@ -565,6 +495,76 @@ del "%CMAKE_ZIP_FILE%"
565495 }
566496<% end %>
567497
498+ <% unless ENV [ 'WINDOWS_ONLY' ] %>
499+ stage('nix') {
500+ matrix {
501+ axes {
502+ axis {
503+ name 'PLATFORM'
504+ values <%= nix_test_builds . map { |( label , dist , relno , arch ) | label . inspect } . join ( ", " ) %>
505+ }
506+ }
507+
508+ agent { label PLATFORM }
509+ stages {
510+ stage("prep") {
511+ steps {
512+ dir("ws_${PLATFORM}") {
513+ deleteDir()
514+ unstash 'libcouchbase'
515+ }
516+ }
517+ }
518+ stage('build') {
519+ environment {
520+ CMAKE_BUILD_PARALLEL_LEVEL=8
521+ }
522+ steps {
523+ dir("ws_${PLATFORM}") {
524+ dir('build') {
525+ sh('cmake -DCMAKE_BUILD_TYPE=<%= reltype %> ../libcouchbase')
526+ sh("cmake --build . --target all ${VERBOSE.toBoolean() ? '--verbose' : ''}")
527+ sh("cmake --build . --target alltests ${VERBOSE.toBoolean() ? '--verbose' : ''}")
528+ }
529+ }
530+ stash(includes: "ws_${PLATFORM}/", name: "${PLATFORM}_build")
531+ }
532+ }
533+ stage('test') {
534+ <% if integration_enabled %>
535+ when {
536+ expression {
537+ return !SKIP_TESTS.toBoolean()
538+ }
539+ }
540+ <% end %>
541+ options {
542+ timeout(time: 60, unit: 'MINUTES')
543+ }
544+ environment {
545+ <% if gtest_shuffle %>
546+ GTEST_SHUFFLE=1
547+ <% end %>
548+ CTEST_PARALLEL_LEVEL=1
549+ CTEST_OUTPUT_ON_FAILURE=1
550+ }
551+ post {
552+ always {
553+ junit(testResults: "ws_${PLATFORM}/build/*.xml", allowEmptyResults: true)
554+ }
555+ }
556+ steps {
557+ dir("ws_${PLATFORM}/build") {
558+ sh("ctest --label-exclude contaminating ${VERBOSE.toBoolean() ? '--extra-verbose' : ''}")
559+ sh("ctest --label-exclude normal ${VERBOSE.toBoolean() ? '--extra-verbose' : ''}")
560+ }
561+ }
562+ }
563+ }
564+ }
565+ }
566+ <% end %>
567+
568568<% if integration_enabled %>
569569 stage('int') {
570570 when {
0 commit comments