Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[ios] Run core unit tests in CI #4574

Merged
merged 1 commit into from
Apr 11, 2016
Merged

[ios] Run core unit tests in CI #4574

merged 1 commit into from
Apr 11, 2016

Conversation

jfirebaugh
Copy link
Contributor

No description provided.

@1ec5
Copy link
Contributor

1ec5 commented Apr 1, 2016

How is ios-sim being installed? Is it provided by Bitrise?

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS tests labels Apr 1, 2016
@jfirebaugh
Copy link
Contributor Author

@1ec5 I don't know. I haven't successfully got the build to that point yet. It seems to be hanging on the first xcodebuild command for some reason:

https://www.bitrise.io/build/2ec0b5f61e76c0ef

Any ideas?

@1ec5
Copy link
Contributor

1ec5 commented Apr 1, 2016

Try nixing the package.sh invocation for now. Maybe the normal SDK build is interfering somehow?

@jfirebaugh jfirebaugh force-pushed the ios-tests branch 3 times, most recently from e3aa9ec to 305823e Compare April 1, 2016 19:41
@jfirebaugh
Copy link
Contributor Author

Nope. Still hangs.

https://www.bitrise.io/build/951cf169a62f3b51

@jfirebaugh
Copy link
Contributor Author

http://devcenter.bitrise.io/docs/step-hangs-times-out-after-a-period-without-any-logs-on-bitrise

I guess I need to figure out how to get gyp to generate a scheme that's marked as "shared" when running make Xcode/ios.

@1ec5
Copy link
Contributor

1ec5 commented Apr 1, 2016

Ah, in that case, check out platform/osx/scripts/test.sh (make xctest). I have quite the hack for you in there.

@jfirebaugh
Copy link
Contributor Author

Heh, wow, quite the hack.

I was going to go with a slightly different approach, of checking in the .xcscheme file from my local checkout, and copying it into place in the build script. That would be a temporary hack until #3275. Any reason to prefer the open / sleep approach instead?

@1ec5
Copy link
Contributor

1ec5 commented Apr 1, 2016

If xcodebuild is able to use that scheme, then great! I’m all for finding alternatives to my hack.

@jfirebaugh
Copy link
Contributor Author

Well, it's successfully running the tests on iOS CI, but we can't see the output. 😢

@jfirebaugh jfirebaugh force-pushed the ios-tests branch 2 times, most recently from 87cef03 to ea8cc82 Compare April 9, 2016 03:15
@1ec5
Copy link
Contributor

1ec5 commented Apr 9, 2016

The simulator does support output to a file descriptor, but I'm not sure if ios-sim supports it. If it doesn't, you could also log to a file and print that file in a subsequent step that runs unconditionally.

@jfirebaugh
Copy link
Contributor Author

ios-sim is supposed to handle that automatically. I discovered that there's a bug in the 3.1.1 version of ios-sim in homebrew which was fixed in 3.2.0. I submitted a homebrew pull request to upgrade.

@jfirebaugh jfirebaugh merged commit 1c7c5af into master Apr 11, 2016
@jfirebaugh jfirebaugh deleted the ios-tests branch April 11, 2016 18:05
@friedbunny friedbunny mentioned this pull request Sep 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Mapbox Maps SDK for iOS tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants