Skip to content

Instantly share code, notes, and snippets.

@mattyohe
Created April 19, 2017 00:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattyohe/31552b6543ae0cf2fdca912c29e9bb17 to your computer and use it in GitHub Desktop.
Save mattyohe/31552b6543ae0cf2fdca912c29e9bb17 to your computer and use it in GitHub Desktop.
Partial Makefile that resolves random Error 65 issues on circle (and travis?)
.PHONY: _build
_build:
set -o pipefail && \
xcodebuild build -workspace $(WORKSPACE).xcworkspace -scheme $(SCHEME) \
-sdk $(SDK) -destination $(DESTINATION) \
CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= 2>&1 | \
tee $(CIRCLE_ARTIFACTS)/xcode_raw_build.log | \
xcpretty --color
.PHONY: _test
_test:
set -o pipefail && \
xcodebuild test -workspace $(WORKSPACE).xcworkspace -scheme $(SCHEME) \
-sdk $(SDK) -destination $(DESTINATION) \
CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= 2>&1 | \
tee $(CIRCLE_ARTIFACTS)/xcode_raw_test.log | \
xcpretty --color --report junit --output $(CIRCLE_TEST_REPORTS)/test-results.xml
@mattyohe
Copy link
Author

Invoked from circle.yml with something like this:

test:
  override:
    - make build
    - make test

@orta
Copy link

orta commented Apr 19, 2017

We do a similar thing: build and run tests

We even have a 15 second wait between build + test, and pre-launch the right sim

@revolter
Copy link

revolter commented Feb 3, 2019

Updated link to Artsy Eigen's CircleCI config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment