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

[ios] Run core unit tests in CI - #4574

Merged
jfirebaugh merged 1 commit into
masterfrom
ios-tests
Apr 11, 2016
Merged

jfirebaugh merged 1 commit into
masterfrom
ios-tests

Conversation

@jfirebaugh

Copy link
Copy Markdown
Contributor

No description provided.

@1ec5

1ec5 commented Apr 1, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

1ec5 commented Apr 1, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

@jfirebaugh

Copy link
Copy Markdown
Contributor Author

@1ec5

1ec5 commented Apr 1, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

1ec5 commented Apr 1, 2016

Copy link
Copy Markdown
Contributor

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

@jfirebaugh

Copy link
Copy Markdown
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

1ec5 commented Apr 9, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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