Commit Graph

114 Commits

Author SHA1 Message Date
Qi Xiao
ea9fe4876b Simplify coverage deployment scripts for Travis.
The condition is guarded in .travis.yml now, so we don't need the
explicit output of whether coverage is being sent.
2018-09-14 13:48:34 +01:00
Qi Xiao
a8644560ac Makefile: simplify deploy scripts for AppVeyor.
Deployment does not run for pull requests, so we don't need to check.
2018-09-14 13:44:42 +01:00
Qi Xiao
589a47ee27 Use "binaries" for the job of building binaries on Travis.
We now use "deploy" to mean both the coverage job and the
binary-building job.
2018-09-14 13:37:29 +01:00
Qi Xiao
4dd0682e09 Separate test and deploy stages on AppVeyor. 2018-09-14 13:36:39 +01:00
Qi Xiao
ce8dee72bb Deploy to bintray in Travis deploy stage. 2018-09-14 00:12:05 +01:00
Qi Xiao
6126cabbc1 .travis.yml: Upload coverage on OSX build too. 2018-09-13 01:30:02 +01:00
Qi Xiao
3c27f941d6 Simplify Travis config. 2018-09-13 01:17:05 +01:00
Qi Xiao
0927701d76 covers/ -> _covers; move tool into _tools/. 2018-08-27 21:16:39 +01:00
Qi Xiao
9b53f3bacf Send coverage when building with 1.10 on Travis. 2018-06-28 00:47:02 +01:00
Qi Xiao
4f28506304 Remove code for uploading binary from CI.
Binaries are now built on Elvish's own infrastructure using elves/up.
2018-06-15 02:36:14 +01:00
Qi Xiao
a03ac1c3f5 Add -dirty to version string if git repo is dirty. 2018-06-15 00:41:25 +01:00
Qi Xiao
84377247a6 build -> buildinfo; include GOROOT and GOPATH and remove builder. 2018-06-15 00:35:10 +01:00
Qi Xiao
d2c720263d Add a POSIX-sh buildall script. 2018-06-14 23:29:10 +01:00
Qi Xiao
86da2ebf42 Makefile: exclude website/ from testing as well. 2018-06-05 22:05:59 +01:00
Qi Xiao
d47719cdf1 Exclude website/ from the dependency of cover/all. 2018-06-05 21:43:09 +01:00
Qi Xiao
1f5f01f3c4 Makefile: Disable PR coverage on AppVeyor. 2017-12-29 15:06:27 +00:00
Qi Xiao
9064f2835f Disable coveralls upload on AppVeyor.
Coveralls is unable to merge coverage reports from multiple CIs.
2017-12-26 16:58:43 +00:00
Qi Xiao
1f27c5e878 Re-enable sending coverage to coveralls. 2017-12-26 02:34:27 +00:00
Qi Xiao
71775b750e Send coverage from AppVeyor. 2017-12-21 19:58:25 +00:00
Qi Xiao
52e392f55c Makefile: Fix target name upload-coverage. 2017-12-18 14:18:27 +00:00
Qi Xiao
11fbc74ea0 Makefile: Cosmetics and correct .PHONY list. 2017-12-18 13:45:38 +00:00
Qi Xiao
e079ef369e Only upload coverage when building with go 1.9. 2017-12-18 13:42:48 +00:00
Qi Xiao
9a31b6487a Makefile: Disable goveralls. 2017-12-16 13:47:07 +00:00
Qi Xiao
9184438c48 Fix Makefile. TravisCI's sh is dash 2017-12-16 04:36:04 +00:00
Qi Xiao
a19ae30d13 Upload coverage to codecov.io. 2017-12-16 04:30:33 +00:00
Qi Xiao
97cbc839ad Makefile: In default target, test before get. 2017-12-09 16:45:29 +01:00
Qi Xiao
310cde86b9 Fix main, and make sure Travis tests main as well. 2017-12-08 00:39:55 +00:00
Qi Xiao
e2e342d1de Add builder info, and a -buildinfo flag. 2017-12-04 21:29:53 +01:00
Qi Xiao
79dc756ee5 Moving packages around.
Logics of the main package is now in program/. Subprograms are subpackages of
program/. For instance, daemon/ is now program/daemon.

The daemon/service package is now simply daemon/.

The version string has been moved into its own package, build/.
2017-12-04 21:08:45 +01:00
Qi Xiao
9b97e0fe8b Makefile: Don't let "upload" depend on "get". 2017-11-29 17:47:57 +01:00
Qi Xiao
f3a808f46f Makefile: Fix condition for build-and-uploading. 2017-11-29 17:29:18 +01:00
Qi Xiao
ae44241c55 Cross-compile Elvish for linux on 386 and arm64. 2017-11-29 17:23:29 +01:00
Qi Xiao
928c1e9166 Makefile: use relative package paths.
This makes the command line shorter when invoking "make".
2017-11-21 23:29:44 +00:00
Qi Xiao
2d837f121e Makefile: Upload binaries built with Go 1.9. 2017-09-29 23:13:56 +08:00
zhsj
0b72aa95ca Add -version (#488)
People install with go get, will show version unknown
But if they install from prebuilt, make get, they will
known their version

Closes: #279

Signed-off-by: Shengjing Zhu <i@zhsj.me>
2017-09-21 20:12:21 +01:00
Qi Xiao
e40a400795 Another attempt at fixing Travis build.
GNU test doesn't have the '>=' operator :-/
2017-07-11 01:14:17 +01:00
Qi Xiao
50b0a3f60b Fix Travis build.
TRAVIS_GO_VERSION is now set to 1.8.3, so a literal match against 1.8 no
longer works. This test is now changed to "$(TRAVIS_GO_VERSION)" '>=' 1.8.
2017-07-11 01:05:24 +01:00
Qi Xiao
bc5543aef2 Makefile: more usable. 2017-06-11 23:16:34 +01:00
Qi Xiao
d490c640d4 Makefile: Switch to -covermode set.
Hopefully this will fix coverage fluctuations...
2017-05-31 23:26:03 +01:00
Qi Xiao
054134fb89 Makefile: Don't error when some packages have no coverage. 2017-05-29 12:59:48 +01:00
Qi Xiao
d62f8d304f Let Travis build with go 1.8.
Go 1.8 was released 3 months ago. I feel like an old person.
2017-05-23 23:43:38 +01:00
Qi Xiao
2d01da47eb Don't fail when not sending goveralls report. 2017-05-23 02:18:41 +01:00
Qi Xiao
d328046be4 Suppress coveralls upgrade for PRs. 2017-05-23 02:00:33 +01:00
Qi Xiao
d579e8ed8a Fix rule for nested package cover. 2017-02-11 22:15:37 -05:00
Qi Xiao
4dac14a783 Makefile: Make cover/% rule nested-package-friendly. 2017-02-11 18:44:52 -05:00
Qi Xiao
3c2df84afa Add tag in filename when uploading from Travis. 2016-10-26 23:16:39 +08:00
Qi Xiao
36271874d8 Remove elvish-stub. 2016-10-26 17:36:26 +08:00
Qi Xiao
948b91f6a7 Always send coverage.
Turns out that coveralls.io understands multiple jobs of the same build.
2016-10-15 16:40:41 +08:00
Qi Xiao
e8535c49a2 Don't run tests twice on Travis. 2016-10-13 18:14:27 +08:00
Qi Xiao
1975c742c3 Only send coverage on go 1.7 linux. 2016-10-13 16:32:00 +08:00