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 CI script #34

Merged
merged 12 commits into from
Oct 2, 2017
Merged

refactor CI script #34

merged 12 commits into from
Oct 2, 2017

Conversation

bast
Copy link
Member

@bast bast commented Oct 1, 2017

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.

Copy link
Collaborator

@robertodr robertodr left a 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
Copy link
Collaborator

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.

Copy link
Member Author

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.

Copy link
Member Author

@bast bast Oct 1, 2017

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.

Copy link
Collaborator

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:
Copy link
Collaborator

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.

Copy link
Member Author

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.

configure = run_command(['cmake', '-H.',
'-Bbuild', '-G' + generator])
[print(x, end="") for x in configure]
sys.stdout.write('{}/{}\n'.format(recipe, example))
Copy link
Collaborator

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?

Copy link
Member Author

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.

@bast bast mentioned this pull request Oct 1, 2017
@bast
Copy link
Member Author

bast commented Oct 1, 2017

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.

@bast
Copy link
Member Author

bast commented Oct 1, 2017

Voila - ready for review.

@bast
Copy link
Member Author

bast commented Oct 1, 2017

Oh - one commit message says "rename menu.yml to config.yml" although it does the exact opposite. Will edit and re-push.

@bast bast force-pushed the radovan/refactor-ci-script branch from 25ed2bf to 585dc6c Compare October 1, 2017 19:49
@robertodr
Copy link
Collaborator

robertodr commented Oct 2, 2017

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.

@robertodr robertodr merged commit 42d7df8 into master Oct 2, 2017
@bast bast deleted the radovan/refactor-ci-script branch October 2, 2017 08:48
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.

None yet

2 participants