Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[MXNET-908] Speed up travis builds to avoid timeouts
Browse files Browse the repository at this point in the history
This PR removes some redundant build tasks and removes some slow tests
to try and decrease the number of TravisCI timeouts that would otherwise
occur on large PRs.
  • Loading branch information
KellenSunderland committed Sep 30, 2018
1 parent 063139d commit a4ebf82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ sudo: true

language: cpp

cache: ccache
cache:
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- $HOME/.mxnet
- $HOME/Library/Caches/Homebrew

os:
- osx
Expand All @@ -17,7 +22,7 @@ before_install:
- export PYTHONPATH=${PYTHONPATH}:${PWD}/python

install:
- brew install ccache
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
- source ci/travis/install.sh

Expand All @@ -29,4 +34,4 @@ script:
- export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0
- mv make/osx.mk config.mk
- make -j 2
- python -m nose --verbose tests/python/unittest/
- python -m nose --with-timer --timer-top-n 20 --exclude-test=test_sparse_operator.test_elemwise_binary_ops --exclude-test=test_gluon_model_zoo.test_models --exclude-test=test_random.test_shuffle --exclude-test=test_operator.test_broadcast_binary_op --exclude-test=test_operator.test_pick --exclude-test=test_profiler.test_continuous_profile_and_instant_marker --exclude-test=test_metric_perf.test_metric_performance --exclude-test=test_operator.test_order --verbose tests/python/unittest/
12 changes: 4 additions & 8 deletions ci/travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@
# specific language governing permissions and limitations
# under the License.

# Disable brew auto-update to avoid long running updates while running tests in CI.
export HOMEBREW_NO_AUTO_UPDATE=1

if [ ${TRAVIS_OS_NAME} == "osx" ]; then
brew update
brew install opencv
brew install python3
brew install fftw
brew install libpng
brew install ImageMagick
brew install swig
python -m pip install --user nose numpy cython scipy requests mock
python3 -m pip install --user nose numpy cython scipy requests mock
python -m pip install --user nose numpy cython scipy requests mock nose-timer nose-exclude
fi

0 comments on commit a4ebf82

Please sign in to comment.