Skip to content

Commit

Permalink
Use makefile with env vars for CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
duartepinto committed Mar 29, 2021
1 parent 6bfeb63 commit 9160da5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 21 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ jobs:
env:
TEST_SDK: "${{ matrix.sdk }}"
TEST_DEVICE: "${{ matrix.device }}"
run: ./.github/workflows/xcodebuild.sh clean build test
run: |
make
make test
- name: "Verify code linting generated no changes"
run: git diff --exit-code
- name: Upload coverage to Codecov
Expand Down
14 changes: 0 additions & 14 deletions .github/workflows/xcodebuild.sh

This file was deleted.

10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
XCARGS := -workspace VelocidiSDK.xcworkspace \
-sdk "iphonesimulator" \
-destination "platform=iOS Simulator,OS=14.4,name=iPhone 11 Pro Max" \
WORKSPACE ?= VelocidiSDK.xcworkspace
TEST_SDK ?= 14.4
TEST_DEVICE ?= iPhone 11 Pro Max

XCARGS := -workspace $(WORKSPACE) \
-sdk "iphonesimulator$(TEST_SDK)" \
-destination "platform=iOS Simulator,OS=$(TEST_SDK),name=$(TEST_DEVICE)" \
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO

all: clean build
Expand Down
3 changes: 0 additions & 3 deletions VelocidiSDK.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9160da5

Please sign in to comment.