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
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
Denys Smirnov
03e4a029c2
fix json output for a single file; fixes #159
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-09-28 20:15:07 +03:00
Antonio Jesus Navarro Perez
15bb13117f
Refactor Oniguruma integration
...
Instead of use a command to change imports before build, using a build tag to generate the correct binary.
This will allow applications to compile enry using oniguruma with less troubles.
Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
2018-08-29 18:01:13 +03:00
Denys Smirnov
8da8516ac1
clarify GetLanguages usage
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-07-31 00:24:20 +03:00
Denys Smirnov
180e8b64c5
ci: fix maven publish steps
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-05-10 16:17:10 +03:00
Denys Smirnov
6712d4219f
optimize line count and limit maximal file size to read; fixes #101
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-05-06 15:27:35 +03:00
Denys Smirnov
c72d3c4af2
ci: do not run go install steps for maven deploy
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-05-04 22:36:52 +03:00
Zachary Romero
35d103b4e4
Add counting mode, and only programming languages flags. ( #110 )
...
Signed-off-by: Zachary Romero <zacromero3@gmail.com>
2018-05-04 18:53:18 +03:00
Denys Smirnov
83cc32253e
rename cli to cmd to follow go convention
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-04-30 12:59:25 +03:00
Denys Smirnov
7eafe024af
write a canonical header for machine-generated files
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-04-30 12:57:39 +03:00
Denys Smirnov
40a21f8e0b
add canonical import path for the package
...
Signed-off-by: Denys Smirnov <denys@sourced.tech>
2018-04-30 12:56:49 +03:00
Denys Smirnov
42391b8e10
Update MAINTAINERS
2018-04-24 18:17:38 +03:00
Vadim Markovtsev
abdfc77dbc
Merge pull request #140 from ZJvandeWeg/zj-rename-onigumura
...
Rename onigumura to oniguruma
2018-03-28 21:44:21 +02:00
Zeger-Jan van de Weg
7923b86ebd
Rename onigumura to oniguruma
...
This change names the dependency like its called. The link to the
package was correct, but all other references were renamed where I could
find time with git grep.
Signed-off-by: Zeger-Jan van de Weg <git@zjvandeweg.nl>
2018-03-28 21:34:54 +02:00
Alfredo Beaumont
0db3b4b553
Merge pull request #138 from abeaumont/fix/hotfix-for-enry-crash
...
enry-java: Tentative fix for the enry crashes in enry-java.
2018-01-12 12:40:32 +01:00
Alfredo Beaumont
b268fad92d
enry-java: Tentative fix for the enry crashes in enry-java.
...
Signed-off-by: Alfredo Beaumont <alfredo.beaumont@gmail.com>
2018-01-12 12:17:30 +01:00
Alfredo Beaumont
3a78601f6e
Merge pull request #135 from abeaumont/feature/bump-java-version
...
java: bump version to 1.6.2
2017-12-12 12:29:30 +01:00
Alfredo Beaumont
747b293abf
java: bump version to 1.6.2
...
Signed-off-by: Alfredo Beaumont <alfredo.beaumont@gmail.com>
2017-12-12 12:28:40 +01:00
Alfredo Beaumont
29cbadf9c5
Merge pull request #134 from abeaumont/fix/check-empty-filenames
...
Fix crash by checking for empty filenames
2017-12-12 10:34:31 +01:00
Alfredo Beaumont
c590beb039
common: Return nil on empty filenames
...
Signed-off-by: Alfredo Beaumont <alfredo.beaumont@gmail.com>
2017-12-07 16:45:19 +01:00
Alfredo Beaumont
a7cfa65953
tests: Add testcases for empty filenames
...
Signed-off-by: Alfredo Beaumont <alfredo.beaumont@gmail.com>
2017-12-07 16:42:02 +01:00
Juanjo Alvarez Martinez
97be58ff4a
Merge pull request #133 from juanjux/feature/compiled_osxcross
...
Use a precompiled package for osxcross for CI.
2017-11-21 16:03:58 +01:00
Juanjo Alvarez
bb027340fb
Use a precompiled package for osxcross for CI.
...
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
2017-11-21 15:29:36 +01:00
Alfredo Beaumont
acaf8f3d38
Merge pull request #131 from abeaumont/fix/bump-enry-java-version
...
enry-java: Bump version to 1.6.1
2017-11-10 13:17:23 +01:00