Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
small build file updates
Browse files Browse the repository at this point in the history
  • Loading branch information
whazor committed Mar 11, 2017
1 parent 37aad3c commit acab582
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
12 changes: 0 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ install:
- rustc -Vv
- cargo -V

# TODO This is the "test phase", tweak it as you see fit
test_script:
# we don't run the "test phase" when doing deploys
- if [%APPVEYOR_REPO_TAG%]==[false] (
cargo build --target %TARGET% &&
cargo build --target %TARGET% --release &&
cargo test --target %TARGET% &&
cargo test --target %TARGET% --release &&
cargo run --target %TARGET% &&
cargo run --target %TARGET% --release
)

before_deploy:
# TODO Update this to build the artifacts that matter to you
- cargo rustc --target %TARGET% --release --bin model_checker -- -C lto
Expand Down
2 changes: 1 addition & 1 deletion ci/before_deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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\model_checker.exe" '.\'

7z a "$ZIP" *

Expand Down
4 changes: 2 additions & 2 deletions ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 model_checker --target $TARGET --release -- -C lto

# TODO Update this to package the right artifacts
cp target/$TARGET/release/hello $stage/
cp target/$TARGET/release/model_checker $stage/

cd $stage
tar czf $src/$CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz *
Expand Down

0 comments on commit acab582

Please sign in to comment.