Skip to content

Commit 9f8375f

Browse files
committed
Test multiple verbosity settings
Unfortunately script verbosity level 2 causes the log length to exceed 4 MB even for the job 2 so it can't be completely tested. Job 3 does a partial test of level 2 but it is canceled at the first attempt to use Boards Manager.
1 parent 439d52f commit 9f8375f

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.travis.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ env:
1313
# Test install_ide with no argument (using full version list). This would cause the Travis CI build to take much longer so I have it disabled
1414
# - INSTALL_IDE_START_VERSION=""
1515
# Test install_ide using full version list
16-
- INSTALL_IDE_START_VERSION="all"
16+
- INSTALL_IDE_START_VERSION="all" SCRIPT_VERBOSITY_LEVEL=0 VERBOSE_COMPILATION="false"
1717
# Test install_ide using custom version list. Test the use of the special version names "oldest" and "newest" in a version list. Test use of "hourly" version name.
18-
- INSTALL_IDE_START_VERSION='("oldest" "1.8.1" "1.8.2" "newest" "hourly")'
18+
- INSTALL_IDE_START_VERSION='("oldest" "1.8.1" "1.8.2" "newest" "hourly")' VERBOSITY_LEVEL=1 VERBOSE_COMPILATION="true"
1919
# Allowed to fail
2020
# Test install_ide using single version
2121
# test the failure behavior of install_package when a Boards Manager installation is attempted using an IDE version that doesn't support it.
22-
- INSTALL_IDE_START_VERSION="1.6.3"
22+
- INSTALL_IDE_START_VERSION="1.6.3" VERBOSITY_LEVEL=2 VERBOSE_COMPILATION="false"
2323
# Test install_ide using version range. Test the use of the special version names "oldest" and "newest" in a version range.
24-
- INSTALL_IDE_START_VERSION="oldest" INSTALL_IDE_END_VERSION="newest"
24+
- INSTALL_IDE_START_VERSION="oldest" INSTALL_IDE_END_VERSION="newest" VERBOSITY_LEVEL=0 VERBOSE_COMPILATION="false"
2525

2626

2727
matrix:
2828
allow_failures:
2929
# The expected behavior is failure because 1.6.3 doesn't support boards manager installation.
30-
- env: INSTALL_IDE_START_VERSION="1.6.3"
30+
- env: INSTALL_IDE_START_VERSION="1.6.3" VERBOSITY_LEVEL=2 VERBOSE_COMPILATION="false"
3131

3232

3333
before_install:
3434
- source "${TRAVIS_BUILD_DIR}/arduino-ci-script.sh"
3535

36-
- set_script_verbosity 0
36+
- set_script_verbosity "$VERBOSITY_LEVEL"
3737

3838
- set_application_folder "$APPLICATION_FOLDER"
3939
- set_sketchbook_folder "$SKETCHBOOK_FOLDER"
@@ -46,10 +46,6 @@ before_install:
4646
# Install hardware packages
4747
# Test package install from this repository (can't do this because the repository isn't a hardware package)
4848
# - install_package
49-
# Test Boards Manager package install without URL. Test error handling of attempting to do a Boards Manager installation when the newest installed IDE version doesn't support it (should print a helpful error message and fail instead of hanging).
50-
- install_package "arduino:sam"
51-
# Test Boards Manager package install with URL
52-
- install_package "MiniCore:avr" "https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json"
5349
# Test manual package install from compressed file download
5450
- install_package "https://github.com/SpenceKonde/ATTinyCore/archive/master.zip"
5551
# Test manual package install from Git repository clone
@@ -65,10 +61,18 @@ before_install:
6561
- install_library "https://github.com/sfrwmaker/WirelessOregonV2.git"
6662
# Test library install from git repo with rename
6763
- install_library "https://github.com/mikaelpatel/Arduino-Shell.git" "ArduinoShell"
64+
# Test set_verbose_output_during_compilation.
65+
- set_verbose_output_during_compilation "$VERBOSE_COMPILATION"
66+
67+
# Boards Manager and Library Manager tests are done as late as possible to allow job 3 to do more thorough testing of script verbosity level 2 before the job fails
68+
69+
# Test Boards Manager package install without URL. Test error handling of attempting to do a Boards Manager installation when the newest installed IDE version doesn't support it (should print a helpful error message and fail instead of hanging).
70+
- install_package "arduino:sam"
71+
# Test Boards Manager package install with URL
72+
- install_package "MiniCore:avr" "https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json"
73+
6874
# Test library install from Library Manager
6975
- install_library "Pushetta:1.0.1"
70-
# Test set_verbose_output_during_compilation. Setting verbose output to false is not actually necessary but it tests the function.
71-
- set_verbose_output_during_compilation "false"
7276

7377

7478
script:

0 commit comments

Comments
 (0)