[libc++] Clean up scripts to setup CI on macOS
authorLouis Dionne <ldionne.2@gmail.com>
Mon, 14 Jun 2021 19:55:36 +0000 (15:55 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 14 Jun 2021 19:55:36 +0000 (15:55 -0400)
libcxx/docs/AddingNewCIJobs.rst
libcxx/utils/ci/macos-ci-setup
libcxx/utils/ci/secrets.env [deleted file]

index 1ac3aa9..4a07393 100644 (file)
@@ -17,7 +17,7 @@ If you need to run the job on your own machines, please follow the
 `Buildkite guide <https://buildkite.com/docs/agent/v3>`_ to setup your
 own agents. Make sure you tag your agents in a way that you'll be able
 to recognize them when defining your job below. Finally, in order for the
-agent to register itself to Buildkite, it will need a ``BUILDKITE_AGENT_TOKEN``.
+agent to register itself to Buildkite, it will need a BuildKite Agent token.
 Please contact a maintainer to get your token.
 
 Then, simply add a job to the Buildkite pipeline by editing ``libcxx/utils/ci/buildkite-pipeline.yml``.
index f59f50d..5cb9d1e 100755 (executable)
@@ -4,7 +4,10 @@
 # An additional requirement that is *not* handled by this script is the
 # installation of Xcode, which requires manual intervention.
 
-source secrets.env
+if [[ -z "${BUILDKITE_AGENT_TOKEN}" ]]; then
+  echo "The BUILDKITE_AGENT_TOKEN environment variable must be set to a BuildKite Agent token when calling this script."
+  exit 1
+fi
 
 # Install Homebrew
 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
diff --git a/libcxx/utils/ci/secrets.env b/libcxx/utils/ci/secrets.env
deleted file mode 100644 (file)
index 7422b1b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#
-# This file template shows which environment variables are required to run
-# libc++ CI nodes. The actual values of these tokens must obviously never be
-# checked in.
-#
-
-# Required to register a new agent with Buildkite
-BUILDKITE_AGENT_TOKEN=<secret>