PCSX2 IPC API Reference implementation
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
1.3 KiB

  1. pipeline {
  2. agent {
  3. docker {
  4. image 'nixos/nix'
  5. args '-u root --privileged -v $HOME/nix-cache:/nix'
  6. }
  7. }
  8. stages {
  9. stage('build') {
  10. steps {
  11. sh '''
  12. rm -rf reports
  13. mkdir reports
  14. nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
  15. nix-channel --update
  16. cd utils/
  17. nix-shell --run "cd ../ && meson build && cd build && ninja"
  18. '''
  19. }
  20. }
  21. // we could probably test the IPC with different emulators here in
  22. // parallel when that's a thing
  23. stage('tests') {
  24. steps {
  25. sh '''
  26. cd utils/
  27. nix-shell --run "../build/tests -r junit -o ../reports/pcsx2.xml"
  28. '''
  29. }
  30. }
  31. stage('release') {
  32. steps {
  33. sh '''
  34. cd utils/
  35. nix-shell --run "sh -c ./build-release.sh"
  36. '''
  37. }
  38. }
  39. }
  40. post {
  41. always {
  42. archiveArtifacts artifacts: 'release.zip', fingerprint: true
  43. junit 'reports/*.xml'
  44. publishCoverage adapters: [coberturaAdapter('build/meson-logs/coverage.xml')]
  45. }
  46. }
  47. }