This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test layers againts tfjs-core@master on Travis Nightly (every 24 hour…
…s) (#353) Travis nightly will clone and link the latest unpublished tfjs-core before running any of the regular stuff (build, lint, test). If a nightly fails, Travis will email us (assuming you have correct email settings). Nightly runs every 24 hours. Towards tensorflow/tfjs#848 DEV
- Loading branch information
Showing
4 changed files
with
583 additions
and
36 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
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2018 Google LLC | ||
# | ||
# Use of this source code is governed by an MIT-style | ||
# license that can be found in the LICENSE file or at | ||
# https://opensource.org/licenses/MIT. | ||
# ============================================================================= | ||
|
||
set -e | ||
|
||
# If this is nightly, use tfjs-core at master. | ||
if [ "$TRAVIS_EVENT_TYPE" = cron ] | ||
then | ||
echo '########### Testing against tfjs-core@master ###########' | ||
yarn run rimraf tfjs-core/ | ||
# depth is an optimization for faster clone (don't clone all of history). | ||
git clone https://github.com/tensorflow/tfjs-core.git --depth=5 | ||
cd tfjs-core | ||
yarn && yarn build && yarn publish-local | ||
cd .. | ||
yarn link-local '@tensorflow/tfjs-core' | ||
fi | ||
|
||
# Regular testing. | ||
yarn build | ||
yarn lint | ||
yarn test-travis |
Oops, something went wrong.