Linux-18.04 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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/apps/ltp
  29. make
  30. ./syscalls.sh
  31. '''
  32. timeout(time: 5, unit: 'MINUTES') {
  33. sh '''
  34. cd LibOS/shim/test/apps/python
  35. make regression
  36. '''
  37. }
  38. sh '''
  39. cd LibOS/shim/test/apps/bash
  40. make regression
  41. '''
  42. timeout(time: 5, unit: 'MINUTES') {
  43. sh '''
  44. cd LibOS/shim/test/apps/gcc
  45. make regression
  46. '''
  47. }
  48. timeout(time: 15, unit: 'MINUTES') {
  49. sh '''
  50. cd LibOS/shim/test/apps/lmbench
  51. make regression N_RUNS=1 ENOUGH=100
  52. '''
  53. }
  54. sh '''
  55. cd LibOS/shim/test/apps/lighttpd
  56. make
  57. make start-graphene-server &
  58. sleep 1
  59. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8000
  60. '''
  61. sh '''
  62. cd LibOS/shim/test/apps/apache
  63. make
  64. make start-graphene-server &
  65. sleep 1
  66. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  67. '''
  68. }
  69. post {
  70. always {
  71. junit 'Pal/regression/pal-regression.xml'
  72. junit 'LibOS/shim/test/regression/libos-regression.xml'
  73. }
  74. }
  75. }
  76. stage('Deploy') {
  77. steps {
  78. sh 'echo Deploying code'
  79. }
  80. }
  81. }
  82. post {
  83. success {
  84. echo 'Deployment successful'
  85. }
  86. failure {
  87. echo 'Failure while on the pipeline'
  88. }
  89. unstable {
  90. echo 'Pipeline marked as "unstable"'
  91. }
  92. }
  93. }