Browse Source

Merge pull request #1128 from aanand/jenkins-dco

Validate DCO in script/test-versions
Ben Firshman 10 years ago
parent
commit
ae9c965823
3 changed files with 6 additions and 0 deletions
  1. 1 0
      script/test
  2. 3 0
      script/test-versions
  3. 2 0
      script/validate-dco

+ 1 - 0
script/test

@@ -9,6 +9,7 @@ docker build -t "$TAG" .
 docker run \
   --rm \
   --volume="/var/run/docker.sock:/var/run/docker.sock" \
+  --volume="$(pwd):/code" \
   -e DOCKER_VERSIONS \
   -e "TAG=$TAG" \
   --entrypoint="script/test-versions" \

+ 3 - 0
script/test-versions

@@ -4,6 +4,9 @@
 
 set -e
 
+>&2 echo "Validating DCO"
+script/validate-dco
+
 >&2 echo "Running lint checks"
 flake8 compose
 

+ 2 - 0
script/validate-dco

@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -e
+
 source "$(dirname "$BASH_SOURCE")/.validate"
 
 adds=$(validate_diff --numstat | awk '{ s += $1 } END { print s }')