Linux-Debug-18.04 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-18.04.dockerfile' }
  4. }
  5. stages {
  6. stage('Lint') {
  7. steps {
  8. sh '''
  9. ./.ci/run-pylint -f text || :
  10. ./.ci/run-pylint -f json | ./.ci/prfilter
  11. ./.ci/run-shellcheck || :
  12. ./.ci/run-shellcheck -f json | ./.ci/prfilter
  13. '''
  14. }
  15. }
  16. stage('Build') {
  17. steps {
  18. sh '''
  19. make -j 8 DEBUG=1 WERROR=1
  20. make -j 8 DEBUG=1 WERROR=1 test
  21. '''
  22. }
  23. }
  24. stage('Test') {
  25. steps {
  26. sh '''
  27. cd Pal/regression
  28. make regression
  29. '''
  30. sh '''
  31. cd LibOS/shim/test/regression
  32. make regression
  33. '''
  34. sh '''
  35. cd LibOS/shim/test/fs
  36. make test
  37. '''
  38. sh '''
  39. cd LibOS/shim/test/apps/ltp
  40. make
  41. make ltp.xml
  42. '''
  43. timeout(time: 5, unit: 'MINUTES') {
  44. sh '''
  45. cd LibOS/shim/test/apps/python-simple
  46. PYTHONVERSION=python3.6 make check
  47. '''
  48. }
  49. timeout(time: 5, unit: 'MINUTES') {
  50. sh '''
  51. cd LibOS/shim/test/apps/python-scipy-insecure
  52. PYTHONVERSION=python3.6 make check
  53. '''
  54. }
  55. sh '''
  56. cd LibOS/shim/test/apps/bash
  57. make regression
  58. '''
  59. timeout(time: 5, unit: 'MINUTES') {
  60. sh '''
  61. cd LibOS/shim/test/apps/curl
  62. make check
  63. '''
  64. }
  65. timeout(time: 5, unit: 'MINUTES') {
  66. sh '''
  67. cd LibOS/shim/test/apps/gcc
  68. make check
  69. '''
  70. }
  71. timeout(time: 20, unit: 'MINUTES') {
  72. sh '''
  73. cd LibOS/shim/test/apps/lmbench
  74. make test N_RUNS=1 ENOUGH=100
  75. '''
  76. }
  77. sh '''
  78. cd LibOS/shim/test/apps/lighttpd
  79. make
  80. make start-graphene-server &
  81. sleep 1
  82. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8003
  83. '''
  84. sh '''
  85. cd LibOS/shim/test/apps/nginx
  86. make
  87. make start-graphene-server &
  88. sleep 1
  89. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8002
  90. '''
  91. sh '''
  92. cd LibOS/shim/test/apps/apache
  93. make
  94. make start-graphene-server &
  95. sleep 1
  96. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  97. '''
  98. }
  99. post {
  100. always {
  101. archiveArtifacts 'LibOS/shim/test/apps/ltp/ltp.xml'
  102. junit 'Pal/regression/pal-regression.xml'
  103. junit 'LibOS/shim/test/regression/libos-regression.xml'
  104. junit 'LibOS/shim/test/apps/ltp/ltp.xml'
  105. }
  106. }
  107. }
  108. stage('Deploy') {
  109. steps {
  110. sh 'echo Deploying code'
  111. }
  112. }
  113. }
  114. post {
  115. success {
  116. echo 'Deployment successful'
  117. }
  118. failure {
  119. echo 'Failure while on the pipeline'
  120. }
  121. unstable {
  122. echo 'Pipeline marked as "unstable"'
  123. }
  124. }
  125. }