Browse Source

use rustup.rs for travis

herrernst 8 năm trước cách đây
mục cha
commit
1f2b37a600
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      .travis.yml

+ 1 - 1
.travis.yml

@@ -19,7 +19,7 @@ before_script:
     - mkdir -p ~/.cargo
     - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
     - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config
-    - sh ~/rust-installer/rustup.sh --prefix=$(rustc --print sysroot) -y --disable-sudo --add-target=armv7-unknown-linux-gnueabihf
+    - rustup target add armv7-unknown-linux-gnueabihf
 
 script:
     - cargo build --no-default-features