Skip to content

Commit

Permalink
Merge branch 'release/20190925'
Browse files Browse the repository at this point in the history
  • Loading branch information
pypt committed Sep 25, 2019
2 parents 304df23 + 4a79650 commit 44a3226
Show file tree
Hide file tree
Showing 13 changed files with 938 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
target/

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "mecab-ipadic-neologd"]
path = mecab-ipadic-neologd
url = https://github.com/neologd/mecab-ipadic-neologd.git
6 changes: 6 additions & 0 deletions .idea/$CACHE_FILE$

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/mecab-publish-builds.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

168 changes: 168 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
language: python
python: "3.7"
dist: xenial

notifications:
email: false

env:
global:
# GitHub personal access token ("GITHUB_OAUTH_TOKEN" environment variable)
# (https://docs.travis-ci.com/user/deployment/releases/#authenticating-with-an-oauth-token)
#
# 1. Go to https://github.com/settings/tokens
# 2. Create new token with "public_repo" permission
# 3. Encrypt token by running:
#
# travis encrypt GITHUB_OAUTH_TOKEN=<token>
#
# 4. Paste it here
- secure: "wSUGdLzSenjTdVmdaYK9UhXHfvNQOXPOyMUxGkxk7G0JoPiMvttNEI33hlZjBWlJ4pQj6qFI2/eaDgTXCzQeALmLQoVi+P7Hxoy8d3ou+luollpUgMt8aPd2wvbJdGKOSBUs4tISRKTapbL2vmDP9l9Di8L45HsD6Brx3MlTBgRVlwdZJclZFSs8l5rLVFYsvhLr3C2XPpPUqI/QRSZZZ504tmhkY45Pu1mMh6aFH+bwetPxor0Z+pagbsqhisqPCHGfbln5wiTJVFfBcv0Nm5phavbBihspS70/3wDOI+sxKZRzkYaNi9CwAFst9wZ8lL936bdLrowIk68cYMNqy7u1poMBX5nuZnsxFhq3pQairlxoROkxM7Vf0UfGohSwjwi/dYivUNk23GZX30HFeg5pMv6mDQbxRdTRtGwa13JzlShpj9nOXVFcTJkY2PXwFrsrh91OXtqF61MFTaNafu2CsTGmJtyceqCbGiblQmT7h9H03R04PwaLPCgvagD0NzuH7fXsi9bkYU+QXqVcWGxarbhWIaP8ONSNy43YLUvmtCAlyWGusDvTbaRzi5HomWij4PozZrvSaD7P2minKeYdM8gLsvvBiGze2T2H7RtYrTVpWWdG3iOdGtDED+HHexoT2zvLYA+CEB69ckVJp3KvOQJIR+ydSD6GDKALWZs="

# Bintray username to use for logging in
- BINTRAY_USERNAME=mediacloud-artifacts

# Bintray API key ("BINTRAY_API_KEY" environment variable)
#
# 1. Go to https://bintray.com/profile/edit
# 2. Click "API Key"
# 4. Encrypt API key by running:
#
# travis encrypt BINTRAY_API_KEY=<api_key>
#
# 5. Paste it here
- secure: "Lh7WnyB8fvsr/Vc/Xf0hUPoa97Ci5vlgXAspnyZqgRo8bHMA06E5UKfVYVIqzaOIalG2s5SmaZiSyraO7PyF0WdD46tIfmw1ZOM2QRvOFnHp9ilpagCbj9+X7CyH3y5X21hza/Fc8hJ36L6e7l3yVm/jlVzS75YOOUMr5VCzs4hfLQDyzcEi4eae08BvQFaztUZrcydubNZQ5dsP3mHdtbrlk3qlwQxxb5sjH2LPJuz3H/SMg773/79bS1DQRN3JPmqT+5RYrB6WLd3AMasi5QxXtPIidcv+Qm+9mbA+XHkEgNXI3udUdKiN56wZI1o7YhQ9HUCzXOVjnhE+BoPfb+TdIytKemyGJTRJE64JBdnlUZx7ZUg9U0sj0TUriL4WARHAHNPe8zneYH6ZMl4v3IlIY+sTW7GQEFXkzY30gNjw9/z6q8Fs67S7d9/wOI2UG5zL0Pxw0hHljxW+srdPjn0sP69XwzlpdTFfKWDSsiS8v2VAkBTH7LkeeCt+HuJQsrFR9VL4PwW42Wh7vJ1SacC8cKZlFqLzk0fMkEt/s0dI/bTZYX/0ZsdW2AWLAd5Hj4c4Fh3D202IsAO9HeNJ5hlmDy6AemtRoNRj/sKuuIthILYhXVNYDVNrj2+z13zFqEBAYeiv+vKP56U8XbjVJt3ptitr87e66FFUuPJux3k="

# Bintray user or organization that owns the repository
- BINTRAY_SUBJECT=neologd-unofficial

# Bintray repository names for each type of package
- BINTRAY_REPOSITORY_TGZ=mecab-ipadic-neologd-tgz
- BINTRAY_REPOSITORY_DEB=mecab-ipadic-neologd-deb
- BINTRAY_REPOSITORY_RPM=mecab-ipadic-neologd-rpm

# Temporary paths to save generated packages to
- PACKAGE_PATH_TGZ=$HOME/mecab-ipadic-neologd-$TRAVIS_TAG.tgz
- PACKAGE_PATH_DEB=$HOME/mecab-ipadic-neologd-$TRAVIS_TAG.deb
- PACKAGE_PATH_RPM=$HOME/mecab-ipadic-neologd-$TRAVIS_TAG.rpm

# Temporary paths to Bintray descriptor JSON files to generate
- BINTRAY_DESCRIPTOR_TGZ=$HOME/bintray-tgz.json
- BINTRAY_DESCRIPTOR_DEB=$HOME/bintray-deb.json
- BINTRAY_DESCRIPTOR_RPM=$HOME/bintray-rpm.json

install:
- gem install --no-ri --no-rdoc fpm

addons:
apt:
packages:
- build-essential
- curl
- file
- git
- libmecab-dev
- make
- mecab
- mecab-ipadic-utf8
- rpm
- ruby
- ruby-dev
- xz-utils

before_script:
- mkdir target/

script:
- bash ./mecab-ipadic-neologd/bin/install-mecab-ipadic-neologd --prefix `readlink -m target/` --forceyes

after_success:

# Create .tgz
- >
if [[ "$TRAVIS_TAG" != "" ]]; then python3 create_package.py
--type tgz
--input_dir target/
--version_tag $TRAVIS_TAG
--output_file $PACKAGE_PATH_TGZ
--bintray_descriptor_file $BINTRAY_DESCRIPTOR_TGZ
--bintray_repository_name $BINTRAY_REPOSITORY_TGZ
--bintray_subject $BINTRAY_SUBJECT; fi
# Create .deb
- >
if [[ "$TRAVIS_TAG" != "" ]]; then python3 create_package.py
--type deb
--input_dir target/
--version_tag $TRAVIS_TAG
--output_file $PACKAGE_PATH_DEB
--bintray_descriptor_file $BINTRAY_DESCRIPTOR_DEB
--bintray_repository_name $BINTRAY_REPOSITORY_DEB
--bintray_subject $BINTRAY_SUBJECT; fi
# Create .rpm
- >
if [[ "$TRAVIS_TAG" != "" ]]; then python3 create_package.py
--type rpm
--input_dir target/
--version_tag $TRAVIS_TAG
--output_file $PACKAGE_PATH_RPM
--bintray_descriptor_file $BINTRAY_DESCRIPTOR_RPM
--bintray_repository_name $BINTRAY_REPOSITORY_RPM
--bintray_subject $BINTRAY_SUBJECT; fi
deploy:

# Deploy .tgz to Bintray
- provider: bintray
file: "$BINTRAY_DESCRIPTOR_TGZ"
user: "$BINTRAY_USERNAME"
key: "$BINTRAY_API_KEY"
skip_cleanup: true
on:
tags: true

# Deploy .deb to Bintray
- provider: bintray
file: "$BINTRAY_DESCRIPTOR_DEB"
user: "$BINTRAY_USERNAME"
key: "$BINTRAY_API_KEY"
skip_cleanup: true
on:
tags: true

# Deploy .rpm to Bintray
- provider: bintray
file: "$BINTRAY_DESCRIPTOR_RPM"
user: "$BINTRAY_USERNAME"
key: "$BINTRAY_API_KEY"
skip_cleanup: true
on:
tags: true

# Deploy .tgz to GitHub Releases
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: "$PACKAGE_PATH_TGZ"
skip_cleanup: true
overwrite: true
on:
tags: true

# Deploy .deb to GitHub Releases
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: "$PACKAGE_PATH_DEB"
skip_cleanup: true
overwrite: true
on:
tags: true

# Deploy .rpm to GitHub Releases
- provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: "$PACKAGE_PATH_RPM"
skip_cleanup: true
overwrite: true
on:
tags: true
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Build and publish mecab-ipadic-NEologd

[![Build Status](https://travis-ci.org/pypt/publish-mecab-ipadic-neologd-builds.svg?branch=develop)](https://travis-ci.org/pypt/publish-mecab-ipadic-neologd-builds)

This repository builds, tags and publishes unofficial [mecab-ipadic-NEologd](https://github.com/neologd/mecab-ipadic-neologd) builds to make them easier to install.


## Installing mecab-ipadic-NEologd


### Debian / Ubuntu

You can download pre-build mecab-ipadic-neologd `.deb` packages via APT:

```bash
# Add Bintray's GPG key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61

# Add mecab-ipadic-neologd APT repository
echo "deb https://dl.bintray.com/neologd-unofficial/mecab-ipadic-neologd-deb stable main" | sudo tee -a /etc/apt/sources.list.d/mecab-ipadic-neologd.list

# Update APT package listing
sudo apt-get -y update

# Install mecab-ipadic-neologd
sudo apt-get -y install mecab-ipadic-neologd
```

or from our [GitHub releases](releases) page.

mecab-ipadic-NEologd data files will be available at `/var/lib/mecab/dic/ipadic-neologd`.


### Red Hat / CentOS

You can download pre-build mecab-ipadic-neologd `.rpm` packages via YUM:

```bash
# Add repository that provides mecab RPM
sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
sudo yum makecache

# Add mecab-ipadic-neologd YUM repository
sudo curl https://bintray.com/neologd-unofficial/mecab-ipadic-neologd-rpm/rpm -o /etc/yum.repos.d/mecab-ipadic-neologd.repo

# Install mecab-ipadic-neologd
sudo yum install -y mecab-ipadic-neologd
```

or from our [GitHub releases](releases) page.

mecab-ipadic-NEologd data files will be available at `/usr/lib64/mecab/dic/ipadic-neologd`.


### Tarball

You can download pre-build mecab-ipadic-NEologd tarball packages from:

**<https://bintray.com/neologd-unofficial/mecab-ipadic-neologd-tgz>**

or from our [GitHub releases](releases) page.
Loading

0 comments on commit 44a3226

Please sign in to comment.