Skip to content

Commit

Permalink
Update ci to pass nightly flag to migrations_macros
Browse files Browse the repository at this point in the history
  • Loading branch information
martell committed Apr 25, 2020
1 parent dafef64 commit 4299754
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ script:
(cd "examples/$BACKEND" && ./test_all) &&
(cd diesel_cli && cargo test --no-default-features --features "$BACKEND") &&
(cd diesel_migrations/migrations_internals && cargo test ) &&
(cd diesel_migrations/migrations_macros && cargo test ) &&
(cd diesel_migrations/ && cargo test --features "$BACKEND diesel/$BACKEND" ) &&
if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
(cd diesel_migrations/migrations_macros && cargo test --features "nightly" )
else
(cd diesel_migrations/migrations_macros && cargo test )
fi &&
(cd diesel_migrations/ && cargo test --features "$BACKEND diesel/$BACKEND" ) &&
if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
(cd diesel_tests && cargo test --no-default-features --features "unstable $BACKEND")
else
Expand Down
6 changes: 5 additions & 1 deletion _build/azure-pipelines-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ jobs:
rust_version: $(RUSTUP_TOOLCHAIN)
bash: |
(cd diesel_migrations/migrations_internals && cargo test ) &&
(cd diesel_migrations/migrations_macros && cargo test ) &&
if [[ "$RUSTUP_TOOLCHAIN" == nightly* ]]; then
(cd diesel_migrations/migrations_macros && cargo test --features "nightly" )
else
(cd diesel_migrations/migrations_macros && cargo test )
fi &&
(cd diesel_migrations/ && cargo test --features "$BACKEND diesel/$BACKEND" )
displayName: Test diesel-migrations
- template: failable_step.yml
Expand Down

0 comments on commit 4299754

Please sign in to comment.