Linux-Debug 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. pipeline {
  2. agent {
  3. dockerfile { filename 'Jenkinsfiles/ubuntu-16.04.dockerfile' }
  4. }
  5. stages {
  6. stage('Build') {
  7. steps {
  8. sh '''
  9. make -j 8 DEBUG=1 WERROR=1
  10. make -j 8 DEBUG=1 WERROR=1 test
  11. '''
  12. sh '''
  13. cd Pal/src
  14. make -j 8 PAL_HOST=Skeleton DEBUG=1 WERROR=1
  15. '''
  16. }
  17. }
  18. stage('Test') {
  19. steps {
  20. sh '''
  21. cd Pal/regression
  22. make regression
  23. '''
  24. sh '''
  25. cd LibOS/shim/test/regression
  26. make regression
  27. '''
  28. sh '''
  29. cd LibOS/shim/test/apps/ltp
  30. make
  31. ./syscalls.sh
  32. '''
  33. timeout(time: 5, unit: 'MINUTES') {
  34. sh '''
  35. cd LibOS/shim/test/apps/python
  36. make regression
  37. '''
  38. }
  39. sh '''
  40. cd LibOS/shim/test/apps/bash
  41. make regression
  42. '''
  43. timeout(time: 5, unit: 'MINUTES') {
  44. sh '''
  45. cd LibOS/shim/test/apps/gcc
  46. make regression
  47. '''
  48. }
  49. timeout(time: 20, unit: 'MINUTES') {
  50. sh '''
  51. cd LibOS/shim/test/apps/lmbench
  52. make regression N_RUNS=1 ENOUGH=100
  53. '''
  54. }
  55. sh '''
  56. cd LibOS/shim/test/apps/lighttpd
  57. make
  58. make start-graphene-server &
  59. sleep 1
  60. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8000
  61. '''
  62. sh '''
  63. cd LibOS/shim/test/apps/apache
  64. make
  65. make start-graphene-server &
  66. sleep 1
  67. LOOP=1 CONCURRENCY_LIST="1 32" ./benchmark-http.sh 127.0.0.1:8001
  68. '''
  69. }
  70. post {
  71. always {
  72. junit 'Pal/regression/pal-regression.xml'
  73. junit 'LibOS/shim/test/regression/libos-regression.xml'
  74. }
  75. }
  76. }
  77. stage('Deploy') {
  78. steps {
  79. sh 'echo Deploying code'
  80. }
  81. }
  82. }
  83. post {
  84. success {
  85. echo 'Deployment successful'
  86. }
  87. failure {
  88. echo 'Failure while on the pipeline'
  89. }
  90. unstable {
  91. echo 'Pipeline marked as "unstable"'
  92. }
  93. }
  94. }