Skip to content

Commit

Permalink
Swift Package Manager: Suppress sandbox-exec under Homebrew; crucia…
Browse files Browse the repository at this point in the history
…l, due to Homebrew's own use of sandboxing.

Travis: remove `make clean` and `SWIFTPM_BOOTSTRAP` (`var` for certain versions of SwiftPM-as-a-library) — no longer necessary as of <9b009cb408afb08e3b32d234adb7a8ee5f1be627>.

Restores previous behavior.

Partial revert of <60aaf683dc4e5d446c2b64704e7c02b80de45ba3>.
  • Loading branch information
jdhealy committed Sep 10, 2019
1 parent 9b009cb commit dad0aa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ matrix:
language: objective-c
osx_image: xcode10.1
script:
- make clean && SWIFTPM_BOOTSTRAP=true make test
- make test
env: JOB=CI_TEST_10_1
- os: osx
language: objective-c
osx_image: xcode10.1
script:
- brew uninstall carthage
- HOMEBREW_NO_AUTO_UPDATE=1 brew install bats
- make clean && SWIFTPM_BOOTSTRAP=true make install
- make install
- bats IntegrationTests
env:
- JOB=CI_INTEGRATION_TESTS
Expand Down
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ OUTPUT_PACKAGE=Carthage.pkg
CARTHAGE_EXECUTABLE=./.build/release/carthage
BINARIES_FOLDER=/usr/local/bin

PWD := $(shell pwd)
SWIFT_BUILD_FLAGS=--skip-update --configuration release -Xswiftc -suppress-warnings
SWIFT_BUILD_FLAGS=--configuration release -Xswiftc -suppress-warnings

SWIFTPM_DISABLE_SANDBOX_SHOULD_BE_FLAGGED:=$(shell test -n "$${HOMEBREW_SDKROOT}" && echo should_be_flagged)
ifeq ($(SWIFTPM_DISABLE_SANDBOX_SHOULD_BE_FLAGGED), should_be_flagged)
Expand Down Expand Up @@ -40,19 +39,16 @@ all: installables

clean:
swift package clean
swift package reset

test:
$(RM_SAFELY) ./.build/debug/CarthagePackageTests.xctest
swift package --skip-update resolve
swift build --skip-update --build-tests -Xswiftc -suppress-warnings
swift build --build-tests -Xswiftc -suppress-warnings
$(CP) -R Tests/CarthageKitTests/Resources ./.build/debug/CarthagePackageTests.xctest/Contents
$(CP) Tests/CarthageKitTests/fixtures/CartfilePrivateOnly.zip ./.build/debug/CarthagePackageTests.xctest/Contents/Resources
script/copy-fixtures ./.build/debug/CarthagePackageTests.xctest/Contents/Resources
swift test --skip-build

installables:
swift package --skip-update resolve
swift build $(SWIFT_BUILD_FLAGS)

package: installables
Expand Down

0 comments on commit dad0aa1

Please sign in to comment.