From 2cb83ca27c1d36d344560ca1c3e2f459a81b07c3 Mon Sep 17 00:00:00 2001 From: Finkelman Date: Sun, 6 Jan 2019 18:28:43 -0500 Subject: [PATCH] it is called cargo-sweep not hello --- ci/before_deploy.ps1 | 2 +- ci/before_deploy.sh | 4 ++-- test.bat | 8 ++++++++ test2.bat | 12 ++++++++++++ 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 test.bat create mode 100644 test2.bat diff --git a/ci/before_deploy.ps1 b/ci/before_deploy.ps1 index 191a30b..e98920e 100755 --- a/ci/before_deploy.ps1 +++ b/ci/before_deploy.ps1 @@ -11,7 +11,7 @@ Set-Location $STAGE $ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip" # TODO Update this to package the right artifacts -Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\hello.exe" '.\' +Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\cargo-sweep.exe" '.\' 7z a "$ZIP" * diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 026dc28..9e784c4 100755 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -18,10 +18,10 @@ main() { test -f Cargo.lock || cargo generate-lockfile # TODO Update this to build the artifacts that matter to you - cross rustc --bin hello --target $TARGET --release -- -C lto + cross rustc --bin cargo-sweep --target $TARGET --release -- -C lto # TODO Update this to package the right artifacts - cp target/$TARGET/release/hello $stage/ + cp target/$TARGET/release/cargo-sweep $stage/ cd $stage tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz * diff --git a/test.bat b/test.bat new file mode 100644 index 0000000..17bd680 --- /dev/null +++ b/test.bat @@ -0,0 +1,8 @@ +cargo clean +cargo +nightly build +cargo +stable build +cargo sweep -s +cargo +stable build +cargo sweep -f +cargo +stable build +cargo +nightly build diff --git a/test2.bat b/test2.bat new file mode 100644 index 0000000..59f42f6 --- /dev/null +++ b/test2.bat @@ -0,0 +1,12 @@ +set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\rustc.exe +"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build +set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe +"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build +"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" sweep -s +set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe +"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build +"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" sweep -f +set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe +"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build +set RUSTC=C:\Users\finkelman.SEMCOGDOM\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\rustc.exe +"C:\Users\finkelman.SEMCOGDOM\Documents\MyProjects\cargo\target\debug\cargo.exe" build