Closed mitsuse closed 8 years ago
LGTM ;) @terhechte will need to setup the Travis side of things first
@mitsuse please see #37, I've added make test
which builds and runs the tests which will be a better command for Travis :)
Also see a489566, I've removed the --recursive
flag on submodule update --init
because I don't think it's necessary - this might resolve the issue you were having with Nimble?
BTW, there is currently 1 failing test but I haven't had time to look into it
@nathankot Thanks! I added make test
to the build script for Travis CI after merging master
.
Also see a489566, I've removed the --recursive flag on submodule update --init because I don't think it's necessary - this might resolve the issue you were having with Nimble?
I have not read source codes of Carthage yet, The option --recurvie
seems to be required because build failed without it on Travis CI:
Please try to execute make dist
in a local repository just after git clone
. It might reproduce an error.
Hmmm the error doesn't look submodule-related:
/Users/travis/Library/Developer/Xcode/DerivedData/Commandant-ajotfymovaoyancuxpxppynicbtt/Build/Intermediates/Commandant.build/Release/Commandant.build/unextended-module.modulemap:2:19: error: umbrella header 'Commandant.h' not found
<unknown>:0: error: could not build Objective-C module 'Commandant'
I just pushed 54efd9f, which make dist
's correctly on a fresh clone, can you see if it succeeds on Travis?
@nathankot I've actually never done that before 😳 What specifically do I need to do? Just sign up on travis-ci.org and add the project? Or are there specific configurations I need to do?
@terhechte yup, pretty much just sign up to TravisCI, add the project and setup the github hook
@nathankot
Hmmm the error doesn't look submodule-related:
/Users/travis/Library/Developer/Xcode/DerivedData/Commandant-ajotfymovaoyancuxpxppynicbtt/Build/Intermediates/Commandant.build/Release/Commandant.build/unextended-module.modulemap:2:19: error: umbrella header 'Commandant.h' not found <unknown>:0: error: could not build Objective-C module 'Commandant'
I agree and 543fd9f
was passed but a test failed as you said before.
This works successfully to build, but I can't judge whether it is correct or not to use carthage bootstrap
in this case... Although git submodule update --init --recursive
and carthage build
also work, what is the difference between them and carthage bootstrap
except that carthage bootstrap
uses Carthfile.resolved
?
@mitsuse
Hey so the build is working now? =D
From what I know, the differences would be:
Cartfile.resolved
. carthage bootstrap
clones revisions specified on Cartfile
, git submodule update --init
clones revisions stored in git. Although they should be the same 99% of the time, I feel like Cartfile
should take priority when there's a discrepancy.carthage bootstrap
does a shallow clone of submodules. I think the reason why it failed previously was because it did a recursive clone, which probably prompted carthage to do a naive build of Commandant's full Carthage/Checkouts
folder (including Nimble) which caused the crash.carthage bootstrap
probably won't use submodules at all (not 100% sure about this.) But if that's the case then it will also use prebuilt binaries when possible.Ok, I've set up travis, so (if I understand things correctly) once we merge this PR, and the travis.yml is added to the project, travis should automatically pick up the new travis.yml file and run a build?
@nathankot @terhechte Thanks!
I think this pull-request is ready to be merged. A test case has failed before this, so it should be fixed with another pull-request.
The build also works fine except for the formula. Homebrew executes git submodule update --init --recursive
after checking-out by default. For a discussion about build, maybe I will create a new issue,
Yup!
Just realised I made a pretty vague comment (too many drinks last night lol.) I meant yup its ready to merge, and we can continue the homebrew discussion on #28
I've fixed the regression on 4aab053 so I will merge this now!
This is replacement of #34 for
git rebase
.Please check the build status (This is a temporary link):