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

Commit e994309

Browse files
[MXNET-908] Speed up travis builds to avoid timeouts
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.
1 parent 063139d commit e994309

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ sudo: true
22

33
language: cpp
44

5-
cache: ccache
5+
cache:
6+
directories:
7+
- $HOME/.ccache
8+
- $HOME/.cache/pip
9+
- $HOME/.mxnet
10+
- $HOME/Library/Caches/Homebrew
611

712
os:
813
- osx
@@ -17,7 +22,7 @@ before_install:
1722
- export PYTHONPATH=${PYTHONPATH}:${PWD}/python
1823

1924
install:
20-
- brew install ccache
25+
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
2126
- export PATH="/usr/local/opt/ccache/libexec:$PATH"
2227
- source ci/travis/install.sh
2328

@@ -29,4 +34,7 @@ script:
2934
- export MXNET_STORAGE_FALLBACK_LOG_VERBOSE=0
3035
- mv make/osx.mk config.mk
3136
- make -j 2
32-
- python -m nose --verbose tests/python/unittest/
37+
# We ignore several tests to avoid possible timeouts on large PRs.
38+
# This lowers our test coverage, but is required for consistent Travis runs.
39+
# These tests will be tested in a variety of environments in Jenkins based tests.
40+
- 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/

ci/travis/install.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,10 @@
1717
# specific language governing permissions and limitations
1818
# under the License.
1919

20+
# Disable brew auto-update to avoid long running updates while running tests in CI.
21+
export HOMEBREW_NO_AUTO_UPDATE=1
22+
2023
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
21-
brew update
2224
brew install opencv
23-
brew install python3
24-
brew install fftw
25-
brew install libpng
26-
brew install ImageMagick
27-
brew install swig
28-
python -m pip install --user nose numpy cython scipy requests mock
29-
python3 -m pip install --user nose numpy cython scipy requests mock
25+
python -m pip install --user nose numpy cython scipy requests mock nose-timer nose-exclude
3026
fi

0 commit comments

Comments
 (0)