Skip to content

Commit

Permalink
Updated CI to test and deploy featured versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Power committed Feb 22, 2018
1 parent 2a471bc commit 6c906f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,19 @@ 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% --features=all &&
cargo build --target %TARGET% --release &&
cargo test --target %TARGET% &&
cargo test --target %TARGET% --features=all &&
cargo test --target %TARGET% --release &&
cargo run --target %TARGET% &&
cargo run --target %TARGET% --features=all &&
cargo run --target %TARGET% --release
)

before_deploy:
# TODO Update this to build the artifacts that matter to you
- cargo rustc --target %TARGET% --release --bin tokei -- -C lto
- cargo build --target %TARGET% --release --bin tokei --features=all
- ps: ci\before_deploy.ps1

deploy:
Expand Down
2 changes: 1 addition & 1 deletion ci/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ main() {
test -f Cargo.lock || cargo generate-lockfile

# TODO Update this to build the artifacts that matter to you
cross rustc --bin tokei --target $TARGET --release -- -C lto
cross build --bin tokei --target $TARGET --release --features=all

# TODO Update this to package the right artifacts
cp target/$TARGET/release/tokei $stage/
Expand Down
3 changes: 3 additions & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ set -ex
main() {
rustup self update
cross build --target $TARGET
cross build --target $TARGET --features=all
cross build --target $TARGET --release

if [ ! -z $DISABLE_TESTS ]; then
return
fi

cross test --target $TARGET
cross test --target $TARGET --features=all
cross test --target $TARGET --release

cross run --target $TARGET
cross run --target $TARGET --features=all
cross run --target $TARGET --release
}

Expand Down

0 comments on commit 6c906f3

Please sign in to comment.