From 8d730050d3e9c21030f5698f3285e6e09e068d74 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 27 Jan 2019 15:27:16 +0100 Subject: [PATCH] Update CI scripts for second post --- .appveyor.yml | 6 +++++- .travis.yml | 10 +++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index cd9de0e3..5b68599e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -67,6 +67,10 @@ before_test: # Fix undefined references to __acrt_iob_func() - sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw64\x86_64-w64-mingw32\include\stdio.h" - sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw32\i686-w64-mingw32\include\stdio.h" + - rustup component add rust-src + - set RUST_BACKTRACE=1 + - if not exist %USERPROFILE%\.cargo\bin\cargo-install-latest.exe cargo install cargo-install-latest + - cargo install-latest cargo-xbuild bootimage test_script: - - cargo --version + - bootimage build diff --git a/.travis.yml b/.travis.yml index 7b23b61e..699c60af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ rust: os: - linux + - osx + - windows notifications: email: @@ -26,5 +28,11 @@ cache: directories: - $HOME/.cargo +before_script: + - rustup component add rust-src + - (test -x $HOME/.cargo/bin/cargo-install-latest || cargo install cargo-install-latest) + - cargo install-latest cargo-xbuild bootimage cargo-cache + script: - - cargo rustc -- -Z pre-link-arg=-nostartfiles + - bootimage build + - cargo cache --autoclean