mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 23:50:12 -06:00
Remove website-test task from Makefile
This task relied on using `wget` to spider the entire site, which is no longer a useful way of checking for broken links on a non-production instance of terraform.io. Also, it didn't include a step for pausing until the server came online, so the task wouldn't have functioned properly anyway.
This commit is contained in:
parent
96ec703a8c
commit
bf5522aaec
23
Makefile
23
Makefile
@ -42,29 +42,6 @@ endif
|
|||||||
--workdir /terraform-website \
|
--workdir /terraform-website \
|
||||||
hashicorp/middleman-hashicorp:${VERSION}
|
hashicorp/middleman-hashicorp:${VERSION}
|
||||||
|
|
||||||
website-test:
|
|
||||||
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
|
|
||||||
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
|
|
||||||
git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
|
|
||||||
endif
|
|
||||||
$(eval WEBSITE_PATH := $(GOPATH)/src/$(WEBSITE_REPO))
|
|
||||||
@echo "==> Testing core website in Docker..."
|
|
||||||
-@docker stop "tf-website-core-temp"
|
|
||||||
@docker run \
|
|
||||||
--detach \
|
|
||||||
--rm \
|
|
||||||
--name "tf-website-core-temp" \
|
|
||||||
--publish "4567:4567" \
|
|
||||||
--volume "$(shell pwd)/website:/website" \
|
|
||||||
--volume "$(shell pwd):/ext/terraform" \
|
|
||||||
--volume "$(WEBSITE_PATH)/content:/terraform-website" \
|
|
||||||
--volume "$(WEBSITE_PATH)/content/source/assets:/website/docs/assets" \
|
|
||||||
--volume "$(WEBSITE_PATH)/content/source/layouts:/website/docs/layouts" \
|
|
||||||
--workdir /terraform-website \
|
|
||||||
hashicorp/middleman-hashicorp:${VERSION}
|
|
||||||
$(WEBSITE_PATH)/content/scripts/check-links.sh "http://127.0.0.1:4567" "/" "/docs/providers/*"
|
|
||||||
@docker stop "tf-website-core-temp"
|
|
||||||
|
|
||||||
# disallow any parallelism (-j) for Make. This is necessary since some
|
# disallow any parallelism (-j) for Make. This is necessary since some
|
||||||
# commands during the build process create temporary files that collide
|
# commands during the build process create temporary files that collide
|
||||||
# under parallel conditions.
|
# under parallel conditions.
|
||||||
|
Loading…
Reference in New Issue
Block a user