diff --git a/.travis.yml b/.travis.yml index 8d194f4e6..bc553cf77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: objective-c before_script: + - script/ci/travis/instruments-auth.sh - gem install json - gem uninstall -Vax --force --no-abort-on-dependent calabash-cucumber - gem uninstall -Vax --force --no-abort-on-dependent run_loop diff --git a/script/ci/travis/com.apple.dt.instruments.process.analysis.plist b/script/ci/travis/com.apple.dt.instruments.process.analysis.plist new file mode 100644 index 000000000..fb33b7663 --- /dev/null +++ b/script/ci/travis/com.apple.dt.instruments.process.analysis.plist @@ -0,0 +1,34 @@ + + + + + allow-root + + authenticate-user + + class + user + comment + Rights for Instruments + created + 409022991.255041 + group + admin + identifier + com.apple.dt.instruments.dtsecurity.xpc + modified + 409022991.255041 + requirement + identifier "com.apple.dt.instruments.dtsecurity.xpc" and anchor apple + session-owner + + shared + + timeout + 36000 + tries + 10000 + version + 0 + + diff --git a/script/ci/travis/com.apple.dt.instruments.process.kill.plist b/script/ci/travis/com.apple.dt.instruments.process.kill.plist new file mode 100644 index 000000000..5377e88b5 --- /dev/null +++ b/script/ci/travis/com.apple.dt.instruments.process.kill.plist @@ -0,0 +1,34 @@ + + + + + allow-root + + authenticate-user + + class + user + comment + Rights for Instruments + created + 409022991.27266097 + group + admin + identifier + com.apple.dt.instruments.dtsecurity.xpc + modified + 409022991.27266097 + requirement + identifier "com.apple.dt.instruments.dtsecurity.xpc" and anchor apple + session-owner + + shared + + timeout + 5 + tries + 10000 + version + 0 + + diff --git a/script/ci/travis/instruments-auth.sh b/script/ci/travis/instruments-auth.sh new file mode 100755 index 000000000..a0f90c661 --- /dev/null +++ b/script/ci/travis/instruments-auth.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +SCRIPT_DIR="${PWD}/script/ci/travis" +sudo security authorizationdb write com.apple.dt.instruments.process.analysis < $SCRIPT_DIR/com.apple.dt.instruments.process.analysis.plist +sudo security authorizationdb write com.apple.dt.instruments.process.kill < $SCRIPT_DIR/com.apple.dt.instruments.process.kill.plist