-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Travis CI for Ubuntu 18.04, use
docker run
as Travis does not h…
…ave Ubuntu 18.04 support directly. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
- Loading branch information
Showing
3 changed files
with
39 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
set -x -e | ||
|
||
# Test on Travis inside Ubuntu18.04 docker image | ||
apt-get -y -qq update | ||
apt-get -y -qq install python${PYTHON_VERSION}-pip curl wget unzip make | ||
if [[ "" != "${PYTHON_VERSION}" ]]; then | ||
ln -s /usr/bin/python${PYTHON_VERSION} /usr/bin/python | ||
ln -s /usr/bin/pip${PYTHON_VERSION} /usr/bin/pip | ||
fi | ||
# Show gcc and python version in Travis CI | ||
gcc -v | ||
python --version | ||
# Install bazel | ||
URL="https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-${BAZEL_OS}-x86_64.sh" | ||
wget -O install.sh "${URL}" | ||
chmod +x install.sh | ||
./install.sh | ||
rm -f install.sh | ||
# Configure TensorFlow | ||
./configure.sh |
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