Permalink
Browse files

Updated CI to test and deploy featured versions

  • Loading branch information...
Aaronepower committed Feb 22, 2018
1 parent 2a471bc commit 6c906f3ce00a90efd649cd51f1f9d09e693a2dc0
Showing with 8 additions and 2 deletions.
  1. +4 −1 appveyor.yml
  2. +1 −1 ci/before_deploy.sh
  3. +3 −0 ci/script.sh
@@ -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:
@@ -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/
@@ -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
}

0 comments on commit 6c906f3

Please sign in to comment.