Skip to content

Commit

Permalink
Simplified travis build (keras-team#11572)
Browse files Browse the repository at this point in the history
* Simplified travis.

* Forgot to escape the slash
  • Loading branch information
gabrieldemarmiesse authored and fchollet committed Nov 5, 2018
1 parent 9f2d662 commit 314c449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ omit =
keras/layers/cudnn_recurrent.py
keras/legacy/*
keras/utils/multi_gpu_utils.py
keras/backend/theano_backend.py
keras/backend/tensorflow_backend.py
keras/backend/cntk_backend.py
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,8 @@ install:
# install cntk
- pip install cntk

# exclude different backends to measure a coverage for the designated backend only
- if [[ "$KERAS_BACKEND" != "tensorflow" ]]; then
echo ' keras/backend/tensorflow_backend.py' >> .coveragerc;
fi
- if [[ "$KERAS_BACKEND" != "theano" ]]; then
echo ' keras/backend/theano_backend.py' >> .coveragerc;
fi
- if [[ "$KERAS_BACKEND" != "cntk" ]]; then
echo ' keras/backend/cntk_backend.py' >> .coveragerc;
fi
# Remove the current backend from the coverage exclusion.
- sed -i "\/keras\/backend\/${KERAS_BACKEND}_backend.py/d" .coveragerc

# detect whether core files are changed or not
- export CORE_CHANGED=False;
Expand Down

0 comments on commit 314c449

Please sign in to comment.