Add build weather support.
* src/cuirass/database.scm (build-weather): New macro. (build-status->weather): New procedure. (db-get-builds): Return the build weather using the new procedure. * src/cuirass/http.scm (build->hydra-build): Also return the weather. * src/cuirass/templates.scm (weather-class, weather-title): New procedures. (build-eval-table): Display the weather. * tests/database.scm ("db-get-build weather"): New tests. * tests/http.scm (build-query-result): Adapt it.
Showing
- src/cuirass/database.scm 53 additions, 28 deletionssrc/cuirass/database.scm
- src/cuirass/http.scm 1 addition, 0 deletionssrc/cuirass/http.scm
- src/cuirass/templates.scm 30 additions, 0 deletionssrc/cuirass/templates.scm
- tests/database.scm 26 additions, 0 deletionstests/database.scm
- tests/http.scm 1 addition, 0 deletionstests/http.scm
Please register or sign in to comment