Skip to content

Commit b770032

Browse files
mit-mitkwalrath
authored andcommitted
Update .travis.yml to run linker checker on all builds (failures allowed) (#1719)
1 parent f6c7b4b commit b770032

File tree

2 files changed

+26
-12
lines changed

2 files changed

+26
-12
lines changed

.travis.yml

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: dart
2-
dart: [stable, dev]
32

43
cache:
54
timeout: 300
@@ -14,23 +13,28 @@ env:
1413
global:
1514
- JEKYLL_ENV=production
1615
- TZ=US/Pacific # normalize build timestamp
17-
matrix:
18-
- TASK="./tool/check-code.sh"
19-
- TASK="./tool/analyze-and-test-examples.sh"
20-
- TASK="bundle exec jekyll build"
2116

2217
matrix:
23-
# allow_failures:
24-
# - env: TASK="./tool/analyze-and-test-examples.sh"
25-
# dart: stable
18+
include:
19+
- env: TASK="bundle exec jekyll build"
20+
dart: stable
21+
- env: TASK="./tool/check-code.sh"
22+
dart: stable
23+
- env: TASK="./tool/check-code.sh"
24+
dart: dev
25+
- env: TASK="./tool/analyze-and-test-examples.sh"
26+
dart: stable
27+
- env: TASK="./tool/analyze-and-test-examples.sh"
28+
dart: dev
29+
- env: TASK="./tool/build-and-check-links.sh"
30+
dart: stable
2631
allow_failures:
2732
- env: TASK="./tool/analyze-and-test-examples.sh"
2833
dart: dev
2934
- env: TASK="./tool/check-code.sh"
3035
dart: dev
31-
exclude:
32-
- env: TASK="bundle exec jekyll build"
33-
dart: dev
36+
- env: TASK="./tool/build-and-check-links.sh"
37+
dart: stable
3438

3539
before_install:
3640
- source ./tool/env-set.sh
@@ -44,7 +48,6 @@ script:
4448
- $TASK
4549

4650
after_script:
47-
- if [[ $TASK == *build* ]]; then ./tool/shared/check-links.sh || travis_terminate 1; fi
4851
# Just FYI test. Won't fail the build if it has errors.
4952
# - if [[ $TASK == *build* ]]; then ./deploy/check_sitemap.rb; fi
5053
# - if [[ $TASK == *build* ]]; then ./deploy/html_proof.rb; fi

tool/build-and-check-links.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
set -e -o pipefail
4+
5+
readonly rootDir="$(cd "$(dirname "$0")/.." && pwd)"
6+
7+
# Build site
8+
bundle exec jekyll build
9+
10+
# Check links
11+
$rootDir/tool/shared/check-links.sh

0 commit comments

Comments
 (0)