-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conditions for builds in CI, and document in comments
- Loading branch information
1 parent
0f24be5
commit bd18e06
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,24 +34,24 @@ addons: | |
packages: | ||
- zmq | ||
|
||
# Docs are only built and deployed in "cron" builds - so only prepare that when needed | ||
# Doc building tools are needed on linux with stable rust | ||
before_install: | ||
- make no-book-config | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then | ||
make book-config | ||
fi | ||
# Docs are only built and deployed in "cron" builds on linux with rust stable | ||
# Docs are only built on linux with stable rust | ||
script: | ||
- | | ||
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then | ||
travis_wait 50 make clippy build test docs | ||
else | ||
travis_wait 50 make clippy test | ||
fi | ||
# Docs are only built and deployed in "cron" builds on linux with rust stable | ||
# Docs are only on linux builds of master branch with stable rust | ||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
|
@@ -67,6 +67,7 @@ notifications: | |
email: | ||
- [email protected] | ||
|
||
# avoid measuring coverage on CRON builds, only measure on non-CRON linux builds with stable rust | ||
after_success: | | ||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" && "$TRAVIS_EVENT_TYPE" != "cron" ]]; then | ||
FLOW_LIB_PATH=$TRAVIS_BUILD_DIR,$TRAVIS_BUILD_DIR/flowr/src/lib make coverage | ||
|