Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tests: remove bash/unix shell dependency for tests #3

Merged
merged 11 commits into from
Apr 4, 2018

Conversation

mratsim
Copy link
Contributor

@mratsim mratsim commented Apr 3, 2018

This remove the dependency on bash/scripting shell and change the following:

This does not address the following:

  • Appveyor windows config
  • Some tests are there but were unused:
    • test_opcode
    • test_vm
    • test_vm_json
  • Switching of nim-rlp repo from alehander42/nim-rlp#fix-ordinal to status-im/nim-rlp#master

.travis.yml Outdated
@@ -5,4 +5,4 @@ before_install:
- docker pull yglukhov/nim-base
script:
- docker run yglukhov/nim-base nim --version
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base /bin/bash -c "nimble install -y && ./tests/build_test.sh && ./tests/test.sh"
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base /bin/bash -c "nimble install -y && nimble test"
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use statusteam/nim-base instead.

.travis.yml Outdated
- docker run yglukhov/nim-base nim --version
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base /bin/bash -c "nimble install -y && ./tests/build_test.sh && ./tests/test.sh"
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nim --version
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nimble install -y
Copy link
Contributor

Choose a reason for hiding this comment

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

This will not work, nimble install -y and nimble test have to be in the same docker run. Also let's use statusteam/nim-base instead of yglukhov/nim-base please ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah, I pasted from secp256k1 and didn't see that the docker was wrong here too

.travis.yml Outdated
- docker run yglukhov/nim-base nim --version
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base /bin/bash -c "nimble install -y && ./tests/build_test.sh && ./tests/test.sh"
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nim --version
- docker run -v "$(pwd):/project" -w /project yglukhov/nim-base nimble refresh
Copy link
Contributor

Choose a reason for hiding this comment

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

Nope, still won't work. Use this please:

- docker run -v "$(pwd):/project" -w /project statusteam/nim-base sh -c "nimble install -dy && nimble test"

@yglukhov yglukhov merged commit 39b82b5 into master Apr 4, 2018
@mratsim mratsim deleted the refactor-tests branch April 6, 2018 14:25
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants