This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ sudo: true
22
33language : 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
712os :
813 - osx
@@ -17,7 +22,7 @@ before_install:
1722 - export PYTHONPATH=${PYTHONPATH}:${PWD}/python
1823
1924install :
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/
Original file line number Diff line number Diff line change 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+
2023if [ ${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
3026fi
You can’t perform that action at this time.
0 commit comments