Commit Graph

342 Commits

Author SHA1 Message Date
M. J. Fromberger
5245079744 Apply suggestions from review.
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-01-29 11:28:44 -08:00
M. J. Fromberger
dabb41527f Apply suggestions from review.
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-01-29 11:28:42 -08:00
M. J. Fromberger
4027b494b3 Add documentation comments to package tokenizer.
Although this package is internal, it still exports an API and deserves some
comments. Serves in partial satisfaction of #195.

Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-01-29 11:18:52 -08:00
M. J. Fromberger
260dcfe002
Merge pull request #197 from creachadair/muckthebits
Prevent tokenization from modifying its input.
2019-01-29 11:18:06 -08:00
M. J. Fromberger
7d277b11de Copy the tokenizer input to avoid modifying the caller's copy.
Addresses #196. Several of the tokenizer's processing steps wind up editing the
source, and we don't want those changes to be observed by the caller, which may
use the source for other purposes afterward.

Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-01-29 10:12:33 -08:00
M. J. Fromberger
169060e1cd Add a test that tokenization does not modify the input.
At present this test fails, since the tokenizer replaces text in shared slices
of the input. A subsequent commit will fix that.

Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-01-29 10:03:09 -08:00
M. J. Fromberger
3748186e13
Merge pull request #187 from creachadair/cleanup
Remove an unnecessary helper function.
2019-01-23 06:59:00 -08:00
M. J. Fromberger
8fcadc60dc Remove an unnecessary helper function.
The writeStringLn function repeats what fmt.Fprintln already does.  Since this
package already imports fmt, removing it reduces mass.

Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-01-08 08:46:36 -08:00
Alexander
f28fc12300
Merge pull request #184 from bzz/maintenance/update-benchmark
Update benchmarks to latest Enry and Github-Linguist
2018-12-28 12:03:17 +01:00
Alexander Bezzubov
890afc400f
bench: update enry v1.6.7 vs linguist v7.1.3
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-12-27 14:50:48 +01:00
Alexander Bezzubov
db21cd6557
doc: add instructions for reproducing benchmarks
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-12-27 14:50:43 +01:00
Alexander Bezzubov
ec96325d13
bench: small refactoring extracting table
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-12-27 14:50:33 +01:00
Alexander
ef50154395
Maintenance: batch of minor changes (#183)
* exclude build artifacts from git
* build: simplify building by using src-d/ci
* bench: simplify&fix shell runners
* build: simplify benchmarks* targets
* test: remove dependency on single test suite
* doc: rel image link + linguist cli difference highlight
* suggestions from code review
* bench: add fail fast to all shell runners

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-12-27 11:55:34 +01:00
Francesc Campoy
84b9e638a4
Merge pull request #179 from src-d/campoy-patch-1
Include reference to source{d} Engine
2018-11-08 16:55:41 -08:00
Francesc Campoy
760c19cb19
Include reference to source{d} Engine
Signed-off-by: Francesc Campoy <campoy@golang.org>
2018-11-07 12:13:42 -08:00
Silvia O'Dwyer
abaedb962b Rectified stray typos in the main README file (#174)
* Fixe typo in the README file.

Signed-off-by: Silvia O'Dwyer <silviaodwyer119@yahoo.ie>
2018-10-29 23:09:42 -04:00
Alexander
2596f2b62b
Merge pull request #173 from bzz/switch-maintainer
Switch maintainer
2018-10-25 10:10:54 +02:00
Alexander Bezzubov
da85758336
maintainer: Denys -> Alex
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 21:25:57 +02:00
Alexander
8953e0e19a
Merge pull request #165 from pratik97/Mybranch
#163 - Added version automation
2018-10-24 19:02:30 +02:00
Alexander Bezzubov
a5974effe4
build: enable sbt-git plugin
As in linked example
 f6351dbffa

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 17:16:38 +02:00
Alexander
6734a7067b
Merge pull request #172 from bzz/fix-typo-in-deployment
HOTFIX: fix typo in deployment provider name
2018-10-24 16:02:17 +02:00
Alexander Bezzubov
b4c163b8e4
ci: fix typo in deployment provider name
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 16:00:44 +02:00
Alexander
c472c24d6d
Merge pull request #171 from bzz/ci-fix-cond-deployemt
HOTDIX: fix .travis.yml syntax for conditional deployments
2018-10-24 15:12:16 +02:00
Alexander Bezzubov
51c418039d
ci: fix .travis.yml syntax for conditional deployments
Was scilently missing `on:` section :(

https://docs.travis-ci.com/user/deployment/#conditional-releases-with-on

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 14:57:53 +02:00
Alexander
6f6555328e
Merge pull request #169 from bzz/fixing-ci-continue
HOTFIX: Fixing release automation
2018-10-24 11:20:20 +02:00
Alexander Bezzubov
03da155069
ci: explicitly enable deployment on tag
As per https://docs.travis-ci.com/user/deployment/#conditional-releases-with-on
it otherwise results in builds like https://travis-ci.org/src-d/enry/jobs/445378509
```
Skipping a deployment with the release provider because this branch is not permitted: v1.6.7
```

So either it needs to be `all_branches: true` or `tags: true` to work.

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 08:54:55 +02:00
Alexander Bezzubov
5367f86f92
ci: make packages fetch deps
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 08:44:00 +02:00
Alexander Bezzubov
a5e3d7d645
ci: move to modeern src-d/ci v1
Otherwise, \w current version 'make pakcages' returns 0
even if the build fails e.g.
https://travis-ci.org/src-d/enry/jobs/445378508

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 08:26:08 +02:00
Alexander
4d314e7877
Merge pull request #168 from bzz/hotfix-release
HOTFIX: CI for release
2018-10-24 00:38:35 +02:00
Alexander Bezzubov
9d68ab72cd
ci: make curl actually fail on 404s
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-24 00:37:52 +02:00
Alexander Bezzubov
dc7b8d7215
ci: move publishing .jar to separate stage
Publishing jar relies on native lib artifacts beeing
published to GH release first, thus a separate stage
is needed to guarantee order.

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-23 23:55:57 +02:00
Alexander Bezzubov
5833f33f41
ci: fail fast on release & fix linux-shared build
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-23 23:42:17 +02:00
Alexander
eb47749451
Merge pull request #166 from bzz/ci-simplify
CI: separate stages for tests and deplay
2018-10-23 16:50:25 +02:00
Alexander Bezzubov
1c3747ab66
ci: add debug version info
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-23 14:12:33 +02:00
Alexander Bezzubov
ff8d87226f
ci: add ONIGURUMA jobs
It's very clear now: only Golang UnitTests are run
with oniguruma regexp enabled.

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-23 14:10:25 +02:00
Alexander Bezzubov
20f6f11a43
ci: break down to multiple stages \w prallel jobs
Biggest benefit of using separate stage for tests and release
is that we are not waiting for osx VM instance instance any
more on every PR, just to run
`if [[ -z "$TRAVIS_TAG" ]]; then echo "Skipping this build for non-tag builds."; exit 0; fi`
there.

It alos adds clarity to CI structure => is easier to maintain.

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-23 14:09:44 +02:00
Alexander
ccb6264699
Merge pull request #164 from bzz/ci-remove-tip
ci: remove go tip and move default to 1.10
2018-10-23 14:06:53 +02:00
Alexander Bezzubov
0f6077dd94
ci: pin VM version
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-23 13:11:09 +02:00
Alexander Bezzubov
89ec551e70
ci: use go 1.10.x
gimme version on TravisCI is old, 1.2 and does not support .x resulting in
 `I don't have any idea what to do with '1.10.x'
but it works on latest master https://github.com/travis-ci/gimme#asking-gimme-what-a-version-is
thus opting out in always running a latest gimme

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-23 11:44:51 +02:00
Alexander Bezzubov
5147de90b8
java: retrofit bindings for JNA generated from Cgo 1.10
Go 1.10 improved the way of passing strings between C and Go
with https://go-review.googlesource.com/c/go/+/70890

This change adapts API/helpers to a new convention,
without changing existing API surface and without benefiting
from a new way of passing strings.

Another, perferable on my readind of `go doc cgo`, but
more invasive approach would be to change ALL enry C API to
always return *C.char \w C.CString()

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-21 16:03:33 +02:00
Alexander Bezzubov
115a7bdc64
java: fix macOS binding generation
`/usr/include/sys/cdefs.h:74:25: warning: #warning "Unsupported compiler detected"`

is solved by by tricking cdefs.h into thinking we're gcc,
similar to https://github.com/nativelibs4java/JNAerator/issues/8#issuecomment-81965369

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-21 16:01:13 +02:00
Alexander Bezzubov
f8d128eeaa
ci: force missing include for java
Otherwise JNAetor enry.jar binding generation on
CI using `make all` results in

```
 /home/travis/build/bzz/enry/java/shared/libenry.h:8:0:
  error: File not found: stddef.h in
  . /usr/include /usr/local/include /usr/include/c++/4.8.4 /usr/include/c++/4.8.4/tr1
```

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-21 16:01:13 +02:00
Alexander Bezzubov
a7d9b95135
ci: move default to 1.10
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-21 15:57:59 +02:00
Alexander Bezzubov
cd5adb803f
ci: remove go tip
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-21 15:56:50 +02:00
Pratik Gandhi
ddeebf4a49 Added Version Automation
Signed-off-by: Pratik Gandhi <pratikgandhi1997@gmail.com>
2018-10-21 16:05:01 +05:30
Alexander
e9fd3640e0
Merge pull request #162 from bzz/java-release-v1.6.5
bump java release artefact version
2018-10-17 16:36:51 +03:00
Alexander Bezzubov
53ab5b0cd6
bump java release artefact version
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2018-10-17 15:55:55 +03:00
Davor Kapsa
66fda9af16 add TestGetMimeType
Signed-off-by: Davor Kapsa <davor.kapsa@gmail.com>
2018-10-03 22:12:00 +03:00
Davor Kapsa
f9c6cbabb1 add TestIsImage
Signed-off-by: Davor Kapsa <davor.kapsa@gmail.com>
2018-10-03 22:12:00 +03:00
Davor Kapsa
039c4b9628 add TestIsAuxiliaryLanguage
Signed-off-by: Davor Kapsa <davor.kapsa@gmail.com>
2018-10-03 22:12:00 +03:00