Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check some repo files #53

Merged
merged 4 commits into from
Nov 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions smtpapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package smtpapi
import (
"encoding/json"
"io/ioutil"
"os"
"reflect"
"regexp"
"strconv"
Expand Down Expand Up @@ -377,6 +378,19 @@ func TestMarshalUnmarshall(t *testing.T) {
}
}

func TestRepoFiles(t *testing.T) {
files := []string{"docker/Dockerfile", "docker/docker-compose.yml", ".env_sample",
".gitignore", ".travis.yml", ".codeclimate.yml", "CHANGELOG.md", "CODE_OF_CONDUCT.md",
"CONTRIBUTING.md", ".github/ISSUE_TEMPLATE", "LICENSE.txt", ".github/PULL_REQUEST_TEMPLATE",
"README.md", "TROUBLESHOOTING.md", "USAGE.md", "USE_CASES.md"}

for _, file := range files {
if _, err := os.Stat(file); os.IsNotExist(err) {
t.Errorf("Repo file does not exist: %v", file)
}
}
}

func TestLicenceDate(t *testing.T) {
b, err := ioutil.ReadFile("./LICENSE.txt")

Expand Down