Giter Site home page Giter Site logo

bio-boris / kbasesearchengine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kbaseattic/kbasesearchengine

0.0 2.0 0.0 7.3 MB

License: MIT License

Dockerfile 0.07% HTML 6.67% Ruby 3.90% CSS 1.10% Makefile 0.15% Shell 0.19% Python 3.03% JavaScript 4.24% Perl 2.89% Java 77.77%

kbasesearchengine's Introduction

KBaseSearchEngine

Build status (master): Build Status codecov

Powers KBase Search MKII.

Documentation

Formal documentation is available as a work in progress - PDF, HTML.

HTML API documention is available here.

Developer Notes

Adding and releasing code

  • Adding code
    • All code additions and updates must be made as pull requests directed at the develop branch.
      • All tests must pass and all new code must be covered by tests.
      • All new code must be documented appropriately
        • Javadoc
        • General documentation if appropriate
        • Release notes
  • Releases
    • The master branch is the stable branch. Releases are made from the develop branch to the master branch.
    • Update the version as per the semantic version rules in /lib/src/kbasesearchengine/main/SearchVersion.java.
    • Tag the version in git and github.

Running tests

With the KBase SDK

The easier of the two way to run tests is to use the KBase SDK via kb-sdk test. Consult the SDK documentation for instructions.

Without the SDK

The second option for running tests runs outside of an SDK docker container and thus requires considerably more setup - MongoDB 2.6+ and ElasticSearch 5.5 must be installed. Consult their respective documentation for instructions.

The tests use the same configuration file as that used by the KBase SDK. The configuration file can be copied from another repo and adjusted appropriately or generated by running kb-sdk test.

The following keys must be added to the test configuration file:

test.mongo.exe - the path to the mongo DB executable.
test.elasticsearch.exe - the path to the ElasticSearch executable.
test.temp.dir - a temporary directory for test files.
test.jars.dir - the path to jars directory inside the KBase jars repo, e.g. [path to jars repo]/lib/jars.

The following key is optional:

test.temp.dir.keep - true to keep test files after running tests, anything else to delete them.

Once the requirements are installed and the test configuration file is ready, from the root of the KBaseSearchEngine repo, run tests as follows:

ant compile -Djars.dir=[path to jars repo]/lib/jars
ant test-report -Djars.dir=[path to jars repo]/lib/jars -Dtest.cfg=[path to test configuration file]

kbasesearchengine's People

Contributors

mrcreosote avatar arfathpasha avatar tiramisu24 avatar ugswork avatar jamesjeffryes avatar sychan avatar psnovichkov avatar kkellerlbl avatar eapearson avatar bio-boris avatar scanon avatar tianhao-gu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.