Skip to content

Commit a13497c

Browse files
committed
Update tooling scripts
1 parent 954f5ad commit a13497c

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
main.tf
22
.terraform
33
terraform-provider-restapi
4-
test.sh
54
terraform.tfstate
65
terraform.tfstate.backup
76
crash.log

scripts/create-github-release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ curl -o /dev/null -sH "$AUTH" $GH_REPO || { echo "Error: Invalid repo, token or
5959
if [[ ! -f release_info.md ]];then
6060
echo "release_info.md file does not exist. Creating it now - hit enter to continue."
6161
read JUNK
62+
echo "## New" > release_info.md
63+
echo " - " >> release_info.md
64+
echo "" >> release_info.md
65+
echo "## Fixed" >> release_info.md
66+
echo " - " >> release_info.md
67+
echo "" >> release_info.md
6268
vi release_info.md
6369
if [[ ! -f release_info.md || -z "$(cat release_info.md)" ]];then
6470
echo "release_info.md file does not exist or is empty. I will not proceed."

scripts/do_release.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,7 @@ if [[ "$tag" != v* ]];then
3535
tag="v$tag"
3636
fi
3737

38-
#Make sure we are good to go
39-
echo "Running tests..."
40-
cd ../restapi
41-
if ! go test;then
42-
echo "Failed testing. Aborting."
43-
exit 1
44-
fi
45-
cd -
38+
./test.sh
4639

4740
#Build for all architectures we want
4841
ARTIFACTS=()

scripts/test.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
export GOOS=""
4+
export GOARCH=""
5+
6+
echo "Running tests..."
7+
cd ../restapi
8+
if ! go test;then
9+
echo "Failed testing. Aborting."
10+
exit 1
11+
fi
12+
cd -

0 commit comments

Comments
 (0)