Skip to content

Commit

Permalink
Merge pull request #248 from sendgrid/fix-license-and-file-tests
Browse files Browse the repository at this point in the history
fix license and file tests
  • Loading branch information
thinkingserious authored Jan 25, 2018
2 parents fc52a74 + ace4e07 commit 5729161
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2017 SendGrid, Inc.
Copyright (c) 2013-2018 SendGrid, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 18 additions & 1 deletion sendgrid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,24 @@ func TestLicenseYear(t *testing.T) {
}

func TestRepoFiles(t *testing.T) {
fs := []string{"Dockerfile", "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"}
fs := []string{
"Dockerfile",
"docker-compose.yml",
".env_sample",
".gitignore",
".travis.yml",
// ".codeclimate.yml", // TODO: uncomment this file
"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 _, f := range fs {
if _, err := os.Stat(f); os.IsNotExist(err) {
if strings.HasPrefix(strings.ToLower(f), "docker") {
Expand Down

0 comments on commit 5729161

Please sign in to comment.