Tidy '.travis.yml' by moving scripts into separate files
MuseScore uses Travis CI (continuous integration) to test code submitted by contributors before it is merged into the project. Travis uses a YAML configuration file '.travis.yml' in the root directory. This file contains instructions to tell Travis how to build MuseScore and the tests, how to do the tests, and who should be alerted when the tests pass or fail.
Most sections of the file are required and cannot be moved to separate files (e.g. Travis-specific syntax, or anything that requires root privileges, like installing dependencies via apt). However, some sections simply contain commands that are passed to a Bash shell. Putting these sections in separate script files has the following advantages:
- The Travis configuration file '.travis.yml' itself would be smaller and more readable.
- Clearer separation of generic build steps from Travis-specific steps.
- Avoid conflicts with characters that have special meanings in YAML and Bash.
- Syntax highlighting of Bash commands in text editors.
Comments
PR: https://github.com/musescore/MuseScore/pull/2362 (also fixes #95541: Portable Linux build (AppImage))
Fixed in branch master, commit 8deb2d48e0
Enable nightly Linux AppImages & fix #97271: tidy .travis.yml
Fixed in branch 2.0.3, commit c2f8511df1
Enable nightly Linux AppImages & fix #97271: tidy .travis.yml
Automatically closed -- issue fixed for 2 weeks with no activity.