You then need to configure your agent token, which you can find your agent token on your "Agents" page in Buildkite:
sed -i ''"s/xxx/INSERT-YOUR-AGENT-TOKEN-HERE/g""$(brew --prefix)"/etc/buildkite-agent/buildkite-agent.cfg
If you want it start on login follow the brew install instructions to install the LaunchAgent plist. You’ll also want to make sure your PC is set to automatically login (the agent won’t launch until you've logged in) and you’ve prevented your machine from going to sleep.
Using a LaunchAgent instead of a LaunchDaemon does require a user login, but it allows your tests to use GUI tools (such as the iOS Simulator) and avoids any file permissions problems.
请发表评论