summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-09-24 14:38:20 +0300
committerLars Wirzenius <liw@liw.fi>2017-09-24 14:38:20 +0300
commit17b5069a8a4d2f7bdfa9cb2617bad739d5b22fc3 (patch)
tree14680592138c6b8381586becdf9f140a530ea729
parent55ab1c78a6fe42c6e0857fa82cab248dcd2f0172 (diff)
downloadick2-17b5069a8a4d2f7bdfa9cb2617bad739d5b22fc3.tar.gz
Add: copyright statements, check they exist
-rw-r--r--NEWS2
-rw-r--r--arch/build.py2
-rwxr-xr-xarch/build.sh1
-rw-r--r--arch/ick2-arch.mdwn6
-rw-r--r--arch/ick2.css2
-rwxr-xr-xcheck22
-rw-r--r--copyright-exceptions9
-rw-r--r--debian/ick2.postinst1
-rwxr-xr-xdebian/rules1
-rw-r--r--ick2.service2
-rwxr-xr-xrun-debug1
-rw-r--r--yarns/000.yarn4
-rw-r--r--yarns/100-projects.yarn4
-rw-r--r--yarns/900-implements.yarn4
-rw-r--r--yarns/lib.py2
15 files changed, 63 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index bce0332..960fce8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
NEWS for ick2, a CI server
=============================================================================
+Copyright 2017 Lars Wirzenius
+
Version 0.2.1+git, not yet released
-----------------------------------
diff --git a/arch/build.py b/arch/build.py
index d60be05..fbd9f91 100644
--- a/arch/build.py
+++ b/arch/build.py
@@ -1,4 +1,6 @@
#!/usr/bin/env python2
+#
+# Copyright 2017 Lars Wirzenius
import os
diff --git a/arch/build.sh b/arch/build.sh
index 90cebb7..ce1bad7 100755
--- a/arch/build.sh
+++ b/arch/build.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+# Copyright 2017 Lars Wirzenius
set -eu
diff --git a/arch/ick2-arch.mdwn b/arch/ick2-arch.mdwn
index 1f62d5c..b368034 100644
--- a/arch/ick2-arch.mdwn
+++ b/arch/ick2-arch.mdwn
@@ -1,3 +1,9 @@
+<!--
+
+Copyright 2017 Lars Wirzenius
+
+-->
+
---
title: Ick2, a CI system (architecture)
author: Lars Wirzenius
diff --git a/arch/ick2.css b/arch/ick2.css
index 78cd374..c925781 100644
--- a/arch/ick2.css
+++ b/arch/ick2.css
@@ -1,3 +1,5 @@
+/* Copyright 2017 Lars Wirzenius */
+
<style>
html {
background: white;
diff --git a/check b/check
index 269c1b9..8bf30d4 100755
--- a/check
+++ b/check
@@ -1,9 +1,31 @@
#!/bin/sh
+# Copyright 2017 Lars Wirzenius
set -eu
+title()
+{
+ printf "\n"
+ echo "$@"
+ n=77
+ for i in $(seq $n)
+ do
+ printf "%s" -
+ done
+ printf '\n'
+}
+
+
+title Unit tests
python3 -m CoverageTestRunner --ignore-missing-from=without-tests ick2
+if [ -e .git ]
+then
+ title Copyright statements
+ copyright-statement-lint $(git ls-files | grep -Fvxf copyright-exceptions)
+fi
+
+title Yarns
yarn yarns/*.yarn \
--shell python2 \
--shell-arg '' \
diff --git a/copyright-exceptions b/copyright-exceptions
new file mode 100644
index 0000000..ec1b211
--- /dev/null
+++ b/copyright-exceptions
@@ -0,0 +1,9 @@
+debian/changelog
+debian/control
+debian/compat
+debian/copyright
+debian/ick2.dirs
+debian/ick2.install
+debian/source/format
+ick2version/version.py
+without-tests
diff --git a/debian/ick2.postinst b/debian/ick2.postinst
index b429951..389899f 100644
--- a/debian/ick2.postinst
+++ b/debian/ick2.postinst
@@ -1,4 +1,5 @@
#!/bin/sh
+# Copyright 2017 Lars Wirzenius
set -eu
diff --git a/debian/rules b/debian/rules
index be56d37..10f84d7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,5 @@
#!/usr/bin/make -f
+# Copyright 2017 Lars Wirzenius
export PYBUILD_NAME=ick2
diff --git a/ick2.service b/ick2.service
index 1c458ac..273523e 100644
--- a/ick2.service
+++ b/ick2.service
@@ -1,3 +1,5 @@
+# Copyright 2017 Lars Wirzenius
+
[Unit]
Description=uWSGI instance to serve Ick2 controller
After=network.target
diff --git a/run-debug b/run-debug
index fdd1ce8..bd1135a 100755
--- a/run-debug
+++ b/run-debug
@@ -1,4 +1,5 @@
#!/bin/sh
+# Copyright 2017 Lars Wirzenius
set -eu
diff --git a/yarns/000.yarn b/yarns/000.yarn
index d022d12..8267fcc 100644
--- a/yarns/000.yarn
+++ b/yarns/000.yarn
@@ -1,3 +1,7 @@
+<!--
+Copyright 2017 Lars Wirzenius
+-->
+
---
title: Ick2 integration tests
author: Lars Wirzenius
diff --git a/yarns/100-projects.yarn b/yarns/100-projects.yarn
index 315116f..31e1441 100644
--- a/yarns/100-projects.yarn
+++ b/yarns/100-projects.yarn
@@ -1,3 +1,7 @@
+<!--
+Copyright 2017 Lars Wirzenius
+-->
+
# Controller project management
The Ick2 controller manages information about projects. Projects are
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index c9c5cf5..3866668 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -1,3 +1,7 @@
+<!--
+Copyright 2017 Lars Wirzenius
+-->
+
# Scenario step implementations
## Authentication setup
diff --git a/yarns/lib.py b/yarns/lib.py
index 4d305c7..32f33ad 100644
--- a/yarns/lib.py
+++ b/yarns/lib.py
@@ -1,3 +1,5 @@
+# Copyright 2017 Lars Wirzenius
+
import errno
import json
import os