Skip to content

Commit

Permalink
Fix Travis Builds (#51)
Browse files Browse the repository at this point in the history
* Add libhdf5 installation

* Roll back to Python 3.7 on Travis
  • Loading branch information
rajat2004 authored and rsnk96 committed Nov 26, 2019
1 parent 0ea24b1 commit 9c7547a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ matrix:
- hash -r # To reload env vars like PATH
- conda info -a
- CIINSTALL=yes ./2-GenSoftware.sh
python: 3.8
python: 3.7
- name: xenial-opencv
os: linux
sudo: required
dist: xenial
script: CIINSTALL=yes ./opencvDirectInstall.sh
python: 3.8
python: 3.7
- name: xenial-ml
os: linux
sudo: required
dist: xenial
script: CIINSTALL=yes ./3-ML-Build.sh
python: 3.8
python: 3.7
- name: xenial-ml-basic
os: linux
sudo: required
dist: xenial
script: CIINSTALL=yes ./ML-Basic.sh
python: 3.8
python: 3.7
- name: bionic-basic
os: linux
sudo: required
Expand All @@ -40,25 +40,25 @@ matrix:
- hash -r # To reload env vars like PATH
- conda info -a
- CIINSTALL=yes ./2-GenSoftware.sh
python: 3.8
python: 3.7
- name: bionic-opencv
os: linux
sudo: required
dist: bionic
script: CIINSTALL=yes ./opencvDirectInstall.sh
python: 3.8
python: 3.7
- name: bionic-ml
os: linux
sudo: required
dist: bionic
script: CIINSTALL=yes ./3-ML-Build.sh
python: 3.8
python: 3.7
- name: bionic-ml-basic
os: linux
sudo: required
dist: bionic
script: CIINSTALL=yes ./ML-Basic.sh
python: 3.8
python: 3.7
before_install:
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
- sudo apt-get update -qq
Expand Down
2 changes: 1 addition & 1 deletion 3-ML-Build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if which nvcc > /dev/null; then
fi

execute $PIP numpy
execute sudo apt-get install -y build-essential cmake pkg-config openjdk-8-jdk
execute sudo apt-get install -y build-essential cmake pkg-config openjdk-8-jdk libhdf5-dev

# To install the latest Bazel version, which has been commented out as of tensorflow v1.13 because the latest version is not supported yet
# Uncomment the following lines and comment out the Bazel installation further down below in order to install the latest Bazel release
Expand Down
2 changes: 2 additions & 0 deletions ML-Basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ else
PIP="sudo pip3 install"
fi

execute sudo apt-get install libhdf5-dev

$PIP --upgrade numpy tabulate python-dateutil
execute $PIP keras gensim networkx --upgrade
execute $PIP tensorflow$GPU_PRESENT --upgrade
Expand Down

0 comments on commit 9c7547a

Please sign in to comment.