Carlos Alexandro Becker
b667490ce4
fix: add the build artifact only if build succeeds
2017-12-18 21:07:33 -02:00
Carlos Alexandro Becker
753359a63a
test: removed useless test
2017-12-17 20:26:30 -02:00
Carlos Alexandro Becker
d8987e281f
test: fixing build pipe tets
2017-12-17 20:25:54 -02:00
Frank Schroeder
904d4455f4
test: add test for name_template with env var
...
Add a test for name_template with an env var.
2017-12-07 23:21:43 -02:00
Carlos Alexandro Becker
b77acd2cc7
test: improving tests
...
Moved tests from defaults to build pipe, as it
doesnt make sense to be there.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
0c91f6e210
test: build tests
...
Added more tests to cover defaulter. Also moved
some code around.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
1ed299a6d7
refactor: defaulter interface
...
Right now the code looks weird because the defaults
of a pipe are far away of the implementation of the pipe.
the intend of this PR is to bring them closer by having a
Defaulter interface.
I also renamed the Pipe interface to Piper, and removed
the Description method in favor for fmt.Stringer.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
dba83bff60
refactor: using os.Stat to decide wether it is a file or a dir
...
This should avoid some failures.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
9a9b9373a2
fix: accepting non-main.go files as well
...
Previous code was handling only main.go as the main build file, but
the main function can actually be in any file.
Now, if a specific file (*.go) is passed, that file will be checked
for the main function.
If a folder is passed, the package will be scanned for the main
function.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
13d2bca06f
refactor: improved error message
...
The error message was kind of bad. Improved it
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
a9f33bd659
test: added a test case for an invalid main.go
...
The user could set the main to anything, so, added a test
for an invalid file as main.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
5a2f6d0318
refactor: remove unnecessary code
...
Since e0897fc2d2
this is not needed
anymore.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
48ddd4c0eb
refactor: using ast parser instead
...
Using the ast parser, so we don't need to glob and goreleaser will work
reliably even if the files aren't gofmt'd.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
eb48a028bd
refactor: improved test code
...
Improved test to better check errors.
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
83093ac477
feat: break if main package doesnt have a main func
...
Breaks the release if the package being built doesnt
have a main function.
Also improved error handling in the build pipe.
Closes #415
2017-11-21 08:27:32 -02:00
Carlos Alexandro Becker
d85a9001ec
removing all assert.New because vet shadow complains about this now
...
aaaaaaaaaaarhhhhhhhhgttt
2017-09-26 19:24:49 -03:00
Carlos Alexandro Becker
5151f176cb
allow configuring parallelism via flag
2017-07-15 16:49:52 -03:00
Carlos Alexandro Becker
cae5d07141
fixed tests
2017-07-13 20:43:12 -03:00
Carlos Alexandro Becker
57a177495b
multiple binaries on naked release: fpm working
2017-07-13 19:46:48 -03:00
Carlos Alexandro Becker
2e0e05134d
refactoring buildtarget
2017-07-06 19:49:21 -03:00
Carlos Alexandro Becker
02cf45cb7e
more build pipe tests
2017-07-03 01:31:57 -03:00
Carlos Alexandro Becker
3a4128b60f
fixed build tests
2017-07-03 01:11:46 -03:00
Carlos Alexandro Becker
827adc83c3
Merge branch 'builds' into naked-release
2017-07-03 00:10:04 -03:00
Carlos Alexandro Becker
0410f5bc72
cleaning up
2017-07-01 21:31:55 -03:00
Carlos Alexandro Becker
a9d6f0ab8c
fixed build tests
2017-07-01 13:21:07 -03:00
Jorin Vogel
24c50d804b
Use format: binary to skip archive
...
instead of a separate skip: true option.
2017-06-08 11:41:47 +02:00
Jorin Vogel
de2b5f4385
Improve test coverage for archive skip option.
2017-06-05 18:28:29 +02:00
Carlos Alexandro Becker
44d9ddd104
reorder
2017-05-11 10:47:03 -03:00
Carlos Alexandro Becker
a6822c53ab
test
2017-05-11 10:44:44 -03:00
Carlos Alexandro Becker
e1bbedd1cb
increased test coverage on build package
2017-04-26 20:26:36 -03:00
Carlos Alexandro Becker
9dc39dc389
renamed things
2017-04-24 14:29:40 -03:00
Carlos Alexandro Becker
0525e9014c
added goarch option to build section
2017-04-24 14:27:21 -03:00
Carlos Alexandro Becker
4c8c51cec4
fixed typo and added more logs
2017-04-15 14:18:17 -03:00
Carlos Alexandro Becker
f5ab2de674
testing failing builds
2017-04-14 12:50:20 -03:00
Carlos Alexandro Becker
522048c62f
more tests
2017-04-14 12:45:38 -03:00
Carlos Alexandro Becker
a25f6c37d5
added more build pipe tests
2017-04-14 12:38:30 -03:00
Carlos Alexandro Becker
ec57004312
Merge branch 'master' into ldflags
2017-03-25 21:35:17 -03:00
Carlos Alexandro Becker
3ce5a430ee
renamed
2017-03-25 21:31:16 -03:00
Carlos Alexandro Becker
7610138016
more test
2017-03-25 21:29:38 -03:00
Carlos Alexandro Becker
1ee7fafe96
more tests
2017-03-25 20:54:14 -03:00
Carlos Alexandro Becker
2885b24976
improving code
2017-03-25 20:53:01 -03:00
Carlos Alexandro Becker
7739a944db
Merge branch 'master' into ldflags
2017-03-25 20:49:29 -03:00
Carlos Alexandro Becker
beb6aeafe4
more boilerplate tests
2017-03-25 20:43:42 -03:00
Carlos Alexandro Becker
4af2cb00ea
ldflags template
2017-03-25 20:24:38 -03:00
Carlos Alexandro Becker
35acdaee32
skip invalid builds
...
closes https://github.com/goreleaser/goreleaser/issues/142
2017-03-18 20:40:26 -03:00