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

Travis ci #18

Merged
merged 4 commits into from
Jun 6, 2020
Merged

Travis ci #18

merged 4 commits into from
Jun 6, 2020

Conversation

ewilz
Copy link
Contributor

@ewilz ewilz commented Jun 3, 2020

A few things going on here:

  • Took src/tests/build out of .gitignore so the built contracts are included with repo. Setting up an entire node/truffle environment for test contracts that are very unlikely to change much seemed like a lot of overhead for situations with no node/truffle.

  • .travis.yml split into 2 jobs. no node/truffle.

  • ./build.sh no longer fails silently

  • Updated rust-toolchain

@ewilz ewilz force-pushed the travis_ci branch 2 times, most recently from ed95e7c to fc3ba7c Compare June 3, 2020 19:02
src/tests/mod.rs Outdated
@@ -135,7 +135,7 @@ fn test_contract_to_eoa_transfer() {
fn test_get_code() {
test_utils::run_test(0, |contract| {
let test_addr = contract.deploy_code(TEST.to_string());
assert!(contract.get_code(test_addr).len() > 3000);
assert!(contract.get_code(test_addr).len() > 3001); // contract code should roughly be over length 3000
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

toggled to test build, I can make it 3000 for official mergeable PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wait i don't have to do this anymore!! This was a docker thing 😂

> build/subcontract.abi
> build/SubContract.abi

rm -rf build/contracts
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

built then unused.

@prestwich
Copy link
Contributor

. is ./res/near_evm.wasm necessary to properly do the lib tests?

No it is not. We still want to leave in the build step so we can be sure we don't introduce changes that break the wasm build, but it can be paralellized

@ewilz ewilz force-pushed the travis_ci branch 11 times, most recently from 3f92ad6 to 2bc0072 Compare June 6, 2020 15:00
@prestwich prestwich merged commit 5effecf into master Jun 6, 2020
@ewilz ewilz deleted the travis_ci branch June 18, 2020 19:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants