mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update CI scripts
- Build `post-*` branches - Use `cargo install-latest` and `cargo cache` - Always notify on failure - Remove some comments
This commit is contained in:
@@ -3,6 +3,7 @@ branches:
|
|||||||
- staging
|
- staging
|
||||||
- trying
|
- trying
|
||||||
- master
|
- master
|
||||||
|
- /post-.*/
|
||||||
|
|
||||||
# Appveyor configuration template for Rust using rustup for Rust installation
|
# Appveyor configuration template for Rust using rustup for Rust installation
|
||||||
# https://github.com/starkat99/appveyor-rust
|
# https://github.com/starkat99/appveyor-rust
|
||||||
@@ -39,7 +40,6 @@ environment:
|
|||||||
cache:
|
cache:
|
||||||
- '%USERPROFILE%\.cargo\bin'
|
- '%USERPROFILE%\.cargo\bin'
|
||||||
- '%USERPROFILE%\.cargo\.crates.toml'
|
- '%USERPROFILE%\.cargo\.crates.toml'
|
||||||
- target
|
|
||||||
|
|
||||||
## Install Script ##
|
## Install Script ##
|
||||||
|
|
||||||
@@ -81,14 +81,9 @@ before_test:
|
|||||||
- 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"
|
- 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
|
- rustup component add rust-src
|
||||||
- set RUST_BACKTRACE=1
|
- set RUST_BACKTRACE=1
|
||||||
- if not exist %USERPROFILE%\.cargo\bin\cargo-update-installed.exe cargo install cargo-update-installed
|
- if not exist %USERPROFILE%\.cargo\bin\cargo-install-latest.exe cargo install cargo-install-latest
|
||||||
- if not exist %USERPROFILE%\.cargo\bin\cargo-xbuild.exe cargo install cargo-xbuild
|
- cargo install-latest cargo-xbuild bootimage
|
||||||
- if not exist %USERPROFILE%\.cargo\bin\bootimage.exe cargo install bootimage
|
|
||||||
- cargo update-installed
|
|
||||||
|
|
||||||
# Uses 'cargo test' to run tests and build. Alternatively, the project may call compiled programs
|
|
||||||
# directly or perform other testing commands. Rust will automatically be placed in the PATH
|
|
||||||
# environment variable.
|
|
||||||
test_script:
|
test_script:
|
||||||
- bootimage build
|
- bootimage build
|
||||||
- if %target%==x86_64-pc-windows-gnu cargo test
|
- if %target%==x86_64-pc-windows-gnu cargo test
|
||||||
|
|||||||
27
.travis.yml
27
.travis.yml
@@ -1,11 +1,17 @@
|
|||||||
language: rust
|
language: rust
|
||||||
|
|
||||||
sudo: false
|
rust:
|
||||||
|
- nightly
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
- windows
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: never
|
on_success: never
|
||||||
on_failure: change
|
on_failure: always
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
@@ -15,14 +21,8 @@ branches:
|
|||||||
- trying
|
- trying
|
||||||
# Build pull requests.
|
# Build pull requests.
|
||||||
- master
|
- master
|
||||||
|
# Build post braches
|
||||||
rust:
|
- /^post-.*$/
|
||||||
- nightly
|
|
||||||
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- osx
|
|
||||||
- windows
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
@@ -42,11 +42,8 @@ install:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- rustup component add rust-src
|
- rustup component add rust-src
|
||||||
- (test -x $HOME/.cargo/bin/cargo-update-installed || cargo install cargo-update-installed)
|
- (test -x $HOME/.cargo/bin/cargo-install-latest || cargo install cargo-install-latest)
|
||||||
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
|
- cargo install-latest cargo-xbuild bootimage cargo-cache
|
||||||
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
|
|
||||||
- (test -x $HOME/.cargo/bin/cargo-cache || cargo install cargo-cache)
|
|
||||||
- cargo update-installed
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bootimage build
|
- bootimage build
|
||||||
|
|||||||
Reference in New Issue
Block a user