Commit Graph

56 Commits

Author SHA1 Message Date
Ying Li
9c0e58c46e Stop using godep in CI and Makefile since we use vendoring now, and check for go version >= 1.6
Signed-off-by: Ying Li <ying.li@docker.com>
2016-04-11 15:40:53 -07:00
Ying Li
77b33cf10f Add the buildtags to go list ./... in the Makefile, signer should not be pkcs11
Signed-off-by: Ying Li <ying.li@docker.com>
2016-04-11 13:25:23 -07:00
Ying Li
7b7b81526a Move .build to buildscripts
Signed-off-by: Ying Li <ying.li@docker.com>
2016-03-24 10:37:36 -07:00
Ying Li
8d18c33f5a Use a container to run the client integration tests
Signed-off-by: Ying Li <ying.li@docker.com>
2016-03-24 10:37:36 -07:00
Ying Li
08c6669473 Add integration tests that build the docker images and the client binary
Signed-off-by: Ying Li <ying.li@docker.com>
2016-03-24 10:37:36 -07:00
Ying Li
5617ee4720 Cross compile notary binaries inside a Docker container
Signed-off-by: Ying Li <ying.li@docker.com>
2016-03-24 10:37:36 -07:00
Ying Li
be91b3342c Fix Makefile to exclude the vendor directory from linting/vetting
Signed-off-by: Ying Li <ying.li@docker.com>
2016-03-08 14:54:29 -08:00
David Lawrence
e270795768 updates and bugfixes for go 1.6
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2016-02-18 16:45:40 -08:00
Riyaz Faizullabhoy
4044a37613 ignore git files in misspell
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2016-02-16 14:36:57 -08:00
Riyaz Faizullabhoy
a0cd58655f add misspell target to makefile
Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
2016-02-16 13:50:20 -08:00
David Lawrence
18ab95c65f add check for darwin (doesn't support static builds)
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2016-02-04 11:54:51 -08:00
David Lawrence
6d091596bc adding additional 'make static' command to create static builds of server and signer
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2016-02-01 16:48:33 -08:00
Ying Li
c583063014 Do not run all the tests when testing yubikey hardware.
The tests take forever, since it *cannot* be parallelized at all, and there
can only be one build at a time.

Signed-off-by: Ying Li <ying.li@docker.com>
2016-01-25 22:03:39 -08:00
Ying Li
a1aa4d7078 Attempt to simplify pushing to codecov, since codecov can do merges.
Signed-off-by: Ying Li <ying.li@docker.com>
2016-01-25 15:18:24 -08:00
Ying Li
4838a90640 Refactor metadata changers into a helper fuzzer object in testutils package.
Signed-off-by: Ying Li <ying.li@docker.com>
2016-01-19 16:27:01 -08:00
Ying Li
7777e085ea Include some comments in the Makefile about how to run with yubikey.
Signed-off-by: Ying Li <ying.li@docker.com>
2016-01-13 18:31:42 -08:00
David Lawrence
0350d56176 renaming dockerfiles for autobuilds
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2016-01-12 18:05:21 -08:00
David Lawrence
8bca542c17 restructuring validateUpdate to get rid of prepRepo
removing attempt in server/snapshot/snapshot.go to regenerate
metadata for roles in snapshot.

Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2015-12-11 16:20:20 -08:00
Ying Li
555a46d8f8 Re-enable pushing coverage reports to codecov.io
Signed-off-by: Ying Li <ying.li@docker.com>
2015-12-02 15:30:22 -08:00
Ying Li
a05fee7469 Make vet target now also checks for filenames with _test_ in the middle.
Since if they are generic test helpers that should be exported,
they should probably go into their own package.  If they are used
during testing, they should end in _test.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-11-15 02:42:14 -08:00
David Lawrence
45de2828b5 Merge pull request #271 from docker/adding-pkcs11-signed
Adding pkcs11 signed
2015-11-12 01:40:38 -08:00
Ying Li
4b7fefd5ef Do not clean up a session if there is no session.
Signed-off-by: Ying Li <ying.li@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>

Signed-off-by: Ying Li <ying.li@docker.com> (github: endophage)
2015-11-12 01:13:35 -08:00
Ying Li
cf85394b4c Start running without the pkcs11 buildtag in CI, and generate coverage.
Signed-off-by: Ying Li <ying.li@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>

Signed-off-by: Ying Li <ying.li@docker.com> (github: endophage)
2015-11-12 01:13:08 -08:00
Jessica Frazelle
5f21ebd185 Add pkcs11 build tags
Add build tags and a check in Makefile to be sure you do not import
pkcs11 lib somewhere where it should not be. This will ensure docker
import and integration will continue to work.

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>

Signed-off-by: Jessica Frazelle <acidburn@docker.com> (github: endophage)
2015-11-12 01:07:00 -08:00
Diogo Monica
b59225297a Fixing makefile
Signed-off-by: Diogo Monica <diogo@docker.com>
Signed-off-by: David Lawrence <david.lawrence@docker.com>

Signed-off-by: Diogo Monica <diogo@docker.com> (github: endophage)
2015-11-12 01:06:40 -08:00
Jessica Frazelle
412679084a Fix version in makefile
OLD:
```
jessie at debian in ~/notary on fix-makefile
$ ./bin/notary version
notary
 Version:    '1.0-rc1'
 Git commit: 'ab66379'
```

WITH PATCH:
```
jessie at debian in ~/notary on fix-makefile
$ ./bin/notary version
notary
 Version:    1.0-rc1
 Git commit: ab66379
```

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-11-02 17:33:33 -08:00
Ying Li
301c0892f3 Update README to reflect go 1.5.1 requirement and add an endpoint
to the makefile to check the go version

Signed-off-by: Ying Li <ying.li@docker.com>
2015-11-01 01:47:02 -07:00
Jessica Frazelle
4e59ed05bc better named dockerfiles and upgrade to go 1.5.1
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-10-29 17:18:43 -07:00
Ying Li
408f1efee7 Use -coverpkg to build multiple coverage outputs and use a tool
to merge them, to get more complete coverage information (so a package
can be tested by code outside the package).

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-24 02:31:09 -07:00
Ying Li
0eb76f4057 Remove option prefixing
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 21:55:53 -07:00
Ying Li
f961afe5c3 Do not run shortened tests in CI, since some codepaths are just
unexercised.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-23 18:47:39 -07:00
Ying Li
c7bef046d5 Clean up the make targets for CircleCI some more.
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 18:47:44 -07:00
Ying Li
9a8fbb5774 Exit the foreach loop if failure, so CI will fail on failed test
Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-21 00:21:15 -07:00
Ying Li
4e24d49ab2 Use the makefile targets for running the test in CircleCI. Push
coverage output to codecov.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-20 21:07:24 -07:00
Ying Li
a858a4f362 Update Makefile with targets that can be used with CircleCI. Also
allow an option to run the short tests (without coverage) while
searching for race conditions.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-20 14:20:01 -07:00
Viktor Stanchev
48e6ecedca Revert "add make install, fix #202"
This reverts commit 77a16d3116.

Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
2015-10-12 10:04:31 -07:00
Diogo Monica
b220d57783 Fixing makefile warnings
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-10-09 15:47:47 -07:00
Viktor Stanchev
77a16d3116 add make install, fix #202
Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
2015-10-09 11:05:08 -07:00
Jessica Frazelle
f5df60b280 fix makefile
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-08-05 17:54:11 -07:00
Jessica Frazelle
4f94d34a9a Updates to Makefile
not everyone has godeps and all that crap on their host, namely me, i do not so
yeah.... this is better

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-07-30 20:18:05 -07:00
Diogo Monica
612dbf4624 Renaming VERSION to NOTARY_VERSION
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-30 11:03:36 -07:00
Jessica Frazelle
f52a63a161 fix
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-07-28 16:06:09 -07:00
Jessica Frazelle
9cd84b783b add changes for makefile for compile time vars
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-07-28 15:27:53 -07:00
Jessica Frazelle
8d0086002e add back html
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-07-28 11:51:20 -07:00
Aaron Lehmann
1d6aa22963 Fix cover target in Makefile
It shouldn't depend on .cover, because the makefile doesn't say how to
builld .cover.

It also needs to be included in .PHONY so "make cover" forces coverage
to be run.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-07-17 16:27:54 -07:00
Jessica Frazelle
23a2d8a3ec move coverage script to makefile function
Signed-off-by: Jessica Frazelle <princess@docker.com>
2015-07-17 12:17:38 -07:00
Jessica Frazelle
7a588ab223 Add makefile target for cross
Can be run with:

```
docker build --rm --force-rm -t notary .

docker run --rm -it \
    -v $(pwd)/cross:/go/src/github.com/docker/notary/cross \
    notary \
    make cross
```

Signed-off-by: Jessica Frazelle <princess@docker.com>
2015-07-17 11:36:38 -07:00
Diogo Monica
dea91dff07 Adding script to output coverage over all packages
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-14 19:23:53 -07:00
Nathan McCauley
40fd60264a exclude proto gen'd code from go fmt
Signed-off-by: Nathan McCauley <nathan.mccauley@docker.com>
2015-07-14 14:13:19 -07:00
Diogo Monica
9a4c2dc744 Initial copy of notary-signer
Signed-off-by: Diogo Monica <diogo@docker.com>
2015-07-14 00:23:22 -07:00