[libcxx-commits] [libcxx] d9d2080 - [libc++] Clean up scripts to setup CI on macOS

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 14 12:56:15 PDT 2021


Author: Louis Dionne
Date: 2021-06-14T15:55:36-04:00
New Revision: d9d20802d0ce757d4b33d6bd67d700e3272bc8b6

URL: https://github.com/llvm/llvm-project/commit/d9d20802d0ce757d4b33d6bd67d700e3272bc8b6
DIFF: https://github.com/llvm/llvm-project/commit/d9d20802d0ce757d4b33d6bd67d700e3272bc8b6.diff

LOG: [libc++] Clean up scripts to setup CI on macOS

Added: 
    

Modified: 
    libcxx/docs/AddingNewCIJobs.rst
    libcxx/utils/ci/macos-ci-setup

Removed: 
    libcxx/utils/ci/secrets.env


################################################################################
diff  --git a/libcxx/docs/AddingNewCIJobs.rst b/libcxx/docs/AddingNewCIJobs.rst
index 1ac3aa95bb8e7..4a07393096b16 100644
--- a/libcxx/docs/AddingNewCIJobs.rst
+++ b/libcxx/docs/AddingNewCIJobs.rst
@@ -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``.

diff  --git a/libcxx/utils/ci/macos-ci-setup b/libcxx/utils/ci/macos-ci-setup
index f59f50db8ac1e..5cb9d1e3e1fd0 100755
--- a/libcxx/utils/ci/macos-ci-setup
+++ b/libcxx/utils/ci/macos-ci-setup
@@ -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
index 7422b1bed8242..0000000000000
--- a/libcxx/utils/ci/secrets.env
+++ /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>


        


More information about the libcxx-commits mailing list