Linux-18.04 4.7 KB

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