forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[move] Fix artifact generation and test for pure Move development (ap…
…tos-labs#5297) This moves the test for whether artifacts are up-to-date out of framework into its own crate. This is necessary so the test is not contaminated with dependencies to `cached-packages`. Moreover, `cached-packages` is introduced as a pseudo dev-dependency to framework. This ensures that artifacts are updated if tests are called on the framework. Overall, this should smoothen out the flow for folks which only change Move code. (Albeit, extra compile time for artifacts on `cargo test -p framework`, but that is unavoidable.)
- Loading branch information
Showing
8 changed files
with
43 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[package] | ||
name = "artifacts-test" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Aptos Labs <[email protected]>"] | ||
repository = "https://github.com/aptos-labs/aptos-core" | ||
homepage = "https://aptoslabs.com" | ||
license = "Apache-2.0" | ||
publish = false | ||
|
||
[dependencies] | ||
dir-diff = "0.3.2" | ||
framework = { path = ".." } | ||
fs_extra = "1.2.0" | ||
tempfile = "3.3.0" | ||
|
||
[lib] | ||
doctest = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This crate contains a single test for CI to check whether someone has pulled | ||
a build dependency on `cached-packages` and therefore generated | ||
artifacts are up-to-date. The test must be standalone in its | ||
own crate to ensure running it does not itself request build of | ||
`cached-packages`. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Copyright (c) Aptos | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#[cfg(test)] | ||
mod artifact_test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters