Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
add local testing of json schema generation (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
surajssd authored and cdrage committed Oct 12, 2017
1 parent e62e952 commit a20308e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
dist: trusty

sudo: required

services:
- docker

language: go
# make it work for forks
go_import_path: github.com/kedgeproject/kedge
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test: test-dep validate test-unit

# Tests that are run on travs-ci
.PHONY: travis-tests
travis-tests: test-dep validate test-unit-cover
travis-tests: test-dep validate test-unit-cover test-jsonschema-generation

# Install all the required test-dependencies before executing tests (only valid when running `make test`)
.PHONY: test-dep
Expand Down Expand Up @@ -118,3 +118,9 @@ vendor-update:
glide update -v
# Vendors OpenShift and its dependencies
./scripts/vendor-openshift.sh

# Test if the changed spec.go is valid and JSONSchema can be generated out of it
.PHONY: test-jsonschema-generation
test-jsonschema-generation:
docker run -v `pwd`/pkg/spec/spec.go:/data/spec.go:ro,Z surajd/kedgeschema

0 comments on commit a20308e

Please sign in to comment.