Procházet zdrojové kódy

first attempt at basic travis build

mihasya před 10 roky
rodič
revize
c76eeb4d84
2 změnil soubory, kde provedl 12 přidání a 0 odebrání
  1. 2 0
      .travis.yml
  2. 10 0
      validate.sh

+ 2 - 0
.travis.yml

@@ -0,0 +1,2 @@
+script:
+    - ./validate.sh

+ 10 - 0
validate.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -e
+
+# check there are no formatting issues
+GOFMT_LINES=`gofmt -l . | wc -l | xargs`
+test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues"
+
+# run the tests for the root package
+go test .