-
Notifications
You must be signed in to change notification settings - Fork 678
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 CI script #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Apparently Travis was deeply offended by the change, not AppVeyor.
It seems Travis was offended by not having dependencies installed (MPI, BLAS, LAPACK, HDF5, Eigen). AppVeyor doesn't do anything at all it seems to me.
@@ -22,10 +22,31 @@ | |||
subdirectory. | |||
|
|||
|
|||
## Configuring tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather always have the config.yml
(possibly better name menu.yml
) and nothing left to default. It simplifies the logic downstream. Upstream (i.e. .travisy.yml
and .appveyor.yml
) we can install all dependencies without logical switches on environment variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem to have this mandatory but would prefer to have this outside this PR. However I will rename to menu.yml
and append to this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mandatory menu.yml
followed up in #36.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me. One step at a time.
Example: | ||
```yaml | ||
# environment variables to be set | ||
env: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the best practice for compilers is to pass CMAKE_<LANG>_COMPILER
with -D
rather than set environment variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK - I will update the example.
.scripts/ci_configure_build_test.py
Outdated
configure = run_command(['cmake', '-H.', | ||
'-Bbuild', '-G' + generator]) | ||
[print(x, end="") for x in configure] | ||
sys.stdout.write('{}/{}\n'.format(recipe, example)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we parse also the README.md
one directory up to get the name of the recipe and print it out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, will append this to this PR.
Yeah also Travis did not do anything previously. We need to fix things. Need to append few changes and will ping once it is ready for another review and merge. |
Voila - ready for review. |
Oh - one commit message says "rename menu.yml to config.yml" although it does the exact opposite. Will edit and re-push. |
25ed2bf
to
585dc6c
Compare
I think AppVeyor doesn't like the regex... Can be fixed in a later PR. Great work so far 😉 I'll merge now and look at the failures tomorrow. |
Probably breaks stuff on Appveyor but it gives now less output, more informative output, and the possibility to provide per-recipe environments. I recommend that we merge (but still please review it) and then we iron out issues. It is still not perfect but I believe a step towards the better.