Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'Travis CI' build failures #399

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
language: python
sudo: required
dist: trusty
dist: bionic
matrix:
include:
- python: 2.7
- python: 3.5
- python: 3.5
- python: 3.6
- python: 3.7
before_install:
- sudo apt-get update -y
- sudo apt-get install -y --no-install-recommends --fix-missing ca-certificates g++ libsndfile1 llvm-7-dev make wget
install:
- source ci/install.sh
- source ci/install.sh
script:
- bash ci/test.sh
- bash ci/test.sh
notifications:
email: false
email: false
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ In this repository, the network implementation can be found in <a href="./wavene
## Requirements

TensorFlow needs to be installed before running the training script.
Code is tested on TensorFlow version 1.0.1 for Python 2.7 and Python 3.5.
Code is tested on TensorFlow version 1.15.2 for Python 3.5, 3.6 and 3.7.

In addition, [librosa](https://github.com/librosa/librosa) must be installed for reading and writing audio.

Expand Down
22 changes: 14 additions & 8 deletions ci/install.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/bin/sh
#!/usr/bin/env bash

wget --no-check-certificate \
https://repo.anaconda.com/miniconda/Miniconda2-4.7.12.1-Linux-x86_64.sh -O miniconda.sh

chmod +x miniconda.sh && ./miniconda.sh -b -p ${HOME}/miniconda

export PATH="${HOME}/miniconda/bin:/usr/lib/llvm-7/bin:${PATH}"

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
conda update -q conda

conda create -q -n test python=$TRAVIS_PYTHON_VERSION numpy scipy
source activate test
pip install -r requirements_test.txt
conda create -q -n test${TRAVIS_PYTHON_VERSION} python=${TRAVIS_PYTHON_VERSION}
source activate test${TRAVIS_PYTHON_VERSION}

python -m pip install pip==19.3.1

python -m pip install -r requirements_test.txt
3 changes: 2 additions & 1 deletion ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash

pep8 **/*.py && \
nosetests -s --nologcapture test
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
librosa>=0.5
tensorflow>=1.0.0
llvmlite>=0.32.0
tensorflow<=1.15.2