Is building supposed to occur at install or script phase?

There seems to be confusion in the job lifecycle design on whether building of the user’s project is supposed to occur at the script phase, or it should rather occur at the install phase while the script phase is reserved solely for running tests after that.

  • Documentation:
    • The doc page above says
    • install: install any dependencies required
    • script: run the build script`.
    • However, the result variable is called $TRAVIS_TEST_RESULT.
    • An example at Job Lifecycle - Travis CI only runs tests and presents that as a complete script phase.
  • Default scripts: