about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2018-10-12 07:59:08 +0200
committerPhilipp Hansch <dev@phansch.net>2018-10-12 08:39:55 +0200
commitf5a38f2323006fb56cc730cc1313f9578bc84c68 (patch)
treec2fddee5f924934db7a2e98185fd17c7c1e9d63f
parent024ccb4f508c184127e2522ce8ac77a9229b31e9 (diff)
downloadrust-f5a38f2323006fb56cc730cc1313f9578bc84c68.tar.gz
rust-f5a38f2323006fb56cc730cc1313f9578bc84c68.zip
Only run markdown linter on linux
Because:

* There's no need to run it on more than one platform
* It doesn't work on windows
-rw-r--r--.travis.yml2
-rwxr-xr-xci/base-tests.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 7abfe0e03dd..5446f1ab568 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,7 +24,7 @@ before_install:
 
 install:
   - |
-    if [ -z ${INTEGRATION} ]; then
+    if [ -z ${INTEGRATION} ] && [ "$TRAVIS_OS_NAME" == "linux" ]; then
       . $HOME/.nvm/nvm.sh
       nvm install stable
       nvm use stable
diff --git a/ci/base-tests.sh b/ci/base-tests.sh
index ebf4a127cdc..72a38ee5e58 100755
--- a/ci/base-tests.sh
+++ b/ci/base-tests.sh
@@ -14,7 +14,9 @@ set -ex
 echo "Running clippy base tests"
 
 PATH=$PATH:./node_modules/.bin
-remark -f *.md > /dev/null
+if [ "$TRAVIS_OS_NAME" == "linux" ]; then
+  remark -f *.md > /dev/null
+fi
 # build clippy in debug mode and run tests
 cargo build --features debugging
 cargo test --features debugging