Browse Source

travis: self update rustup before installing rustfmt

Mokhtar Naamani 5 years ago
parent
commit
9e04705243
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .travis.yml

+ 4 - 0
.travis.yml

@@ -3,10 +3,14 @@ language: rust
 rust:
   - 1.40.0
 # Caching saves a lot of time but often causes stalled builds...
+# disabled for now
+# look into solution here: https://levans.fr/rust_travis_cache.html
 # cache:
 #  - cargo
 
 before_script:
+  # Do a self update before installing rustfmt - https://github.com/rust-lang/rustfmt/issues/3271
+  - rustup self update
   - rustup component add rustfmt
   - ./setup.sh