Luca Milanesio | 3e191e4 | 2016-10-07 16:29:28 +0100 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | |
Luca Milanesio | e0c046c | 2022-10-13 21:23:40 +0100 | [diff] [blame] | 3 | cd gerrit |
| 4 | |
| 5 | if git show --diff-filter=AM --name-only --pretty="" HEAD | grep -q .bazelversion |
| 6 | then |
| 7 | export BAZEL_OPTS="" |
| 8 | fi |
| 9 | |
Luca Milanesio | 419610f | 2023-10-25 00:27:24 +0200 | [diff] [blame] | 10 | case {branch} in |
Luca Milanesio | 759c31c | 2024-04-05 15:05:02 +0100 | [diff] [blame] | 11 | master|stable-3.10|stable-3.9) |
Luca Milanesio | 419610f | 2023-10-25 00:27:24 +0200 | [diff] [blame] | 12 | . set-java.sh 17 |
| 13 | ;; |
| 14 | |
| 15 | *) |
| 16 | . set-java.sh 11 |
| 17 | ;; |
| 18 | esac |
Luca Milanesio | 66abd9e | 2020-10-23 15:28:43 +0100 | [diff] [blame] | 19 | |
Luca Milanesio | a6b6d35 | 2023-12-29 01:18:14 +0000 | [diff] [blame] | 20 | export BAZEL_OPTS="$(echo $BAZEL_OPTS | xargs) \ |
Alvaro Vilaplana Garcia | 5d8294a | 2024-01-23 09:26:45 +0000 | [diff] [blame] | 21 | --config=remote_bb \ |
| 22 | --jobs=50 \ |
| 23 | --remote_header=x-buildbuddy-api-key=$BB_API_KEY \ |
David Ostrovsky | e554a54 | 2021-02-19 19:40:33 +0100 | [diff] [blame] | 24 | --flaky_test_attempts 3 \ |
Luca Milanesio | 74e5a1b | 2017-01-11 16:35:35 +0000 | [diff] [blame] | 25 | --test_timeout 3600 \ |
Luca Milanesio | b0c3f44 | 2023-12-28 22:41:04 +0000 | [diff] [blame] | 26 | --test_tag_filters=-flaky" |
Alvaro Vilaplana Garcia | 5d8294a | 2024-01-23 09:26:45 +0000 | [diff] [blame] | 27 | |
Paladox none | ff75f26 | 2017-12-23 16:59:42 +0000 | [diff] [blame] | 28 | export WCT_HEADLESS_MODE=1 |
Luca Milanesio | b18a5e1 | 2016-12-23 00:14:29 +0000 | [diff] [blame] | 29 | |
David Pursehouse | a19f76a | 2019-10-30 16:07:24 +0900 | [diff] [blame] | 30 | java -fullversion |
Luca Milanesio | 4e82637 | 2019-06-07 15:19:35 +0100 | [diff] [blame] | 31 | bazelisk version |
| 32 | |
Luca Milanesio | f1e4a1d | 2019-11-21 13:04:09 +0000 | [diff] [blame] | 33 | echo 'Test in NoteDb mode' |
| 34 | echo '----------------------------------------------' |
Luca Milanesio | b351dc6 | 2023-12-29 11:25:03 +0000 | [diff] [blame] | 35 | bazelisk test $BAZEL_OPTS //... |
Luca Milanesio | b18a5e1 | 2016-12-23 00:14:29 +0000 | [diff] [blame] | 36 | |
Thomas Draebing | 192e33a | 2021-06-24 08:24:02 +0200 | [diff] [blame] | 37 | echo "Test PolyGerrit locally in $(google-chrome --version)" |
Luca Milanesio | f1e4a1d | 2019-11-21 13:04:09 +0000 | [diff] [blame] | 38 | echo '----------------------------------------------' |
| 39 | bash ./polygerrit-ui/app/run_test.sh || touch ~/polygerrit-failed |
Paladox none | b1dd0a6 | 2017-05-24 12:54:50 +0000 | [diff] [blame] | 40 | |
Luca Milanesio | 3e191e4 | 2016-10-07 16:29:28 +0100 | [diff] [blame] | 41 | exit 0 |