This improves the setup for CircleCI to ensure our "test" runs
effectively and efficiently.
Add the checkout command to copy the sample environment variables
file into a .env file. This ensures CircleCI has the proper
environment variables when building, and copying the sample files
allows us to manage them in one place.
Add the compile command to build the static site. CircleCI was
inferring this command already, but it was not running the build
command with the --verbose flag, which is much more descriptive and
useful for tracking down any errors and warnings.
Change the test to command to not run any tests. This is a required
command, so we need to have it, but we aren't actually running a test
suite (we just want to be sure the site can be built/compiled). Since
the compile command is now handling the building of the site, we can
just output 'true' here.
This improves the setup for CircleCI to ensure our "test" runs effectively and efficiently.
checkout
command to copy the sample environment variables file into a.env
file. This ensures CircleCI has the proper environment variables when building, and copying the sample files allows us to manage them in one place.compile
command to build the static site. CircleCI was inferring this command already, but it was not running the build command with the--verbose
flag, which is much more descriptive and useful for tracking down any errors and warnings.test
to command to not run any tests. This is a required command, so we need to have it, but we aren't actually running a test suite (we just want to be sure the site can be built/compiled). Since thecompile
command is now handling the building of the site, we can just output 'true' here.