Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) add travis config #45

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
language: ruby

rvm:
- 1.9
- 2.0
- 2.1
- 2.2
- 2.3
- 2.4
- 2.5

before_install:
- env
- lsb_release -a
- uname -a
- sudo apt-get -qq update

install:
- echo "yes" | sudo add-apt-repository ppa:avsm/ocaml41+opam11
- sudo apt-get -qq update
- sudo apt-get -qq install opam ocaml ocaml-native-compilers camlp4-extra
- export OPAMYES=1
- opam init
- opam install -y omake ounit extlib
- eval `opam config env`
- which omake

- git clone https://github.com/jubatus/jubatus.git jubatus_server
# jenerator
- mkdir -p ~/bin
- pushd jubatus_server/tools/jenerator && omake && PREFIX=~/ omake install && popd

- sudo sh -c "echo 'deb http://download.jubat.us/apt binary/' > /etc/apt/sources.list.d/jubatus.list"
- sudo apt-get -qq update
- sudo apt-get -qq install jubatus --force-yes

# for jubatus-ruby-client
- bundle install

#branches:
# only:
# - master
# - develop

script:
- PATH=~/bin:${PATH} ./generate.sh
- source /opt/jubatus/profile
- rake test
- rake integration_test