diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000000..153a32941e0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,39 @@ +language: cpp +compiler: + - gcc + - clang +before_install: + - echo $LANG + - echo $LC_ALL + - sudo apt-get -y update +install: + - sudo apt-get -y install wget git curl python-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev protobuf-compiler libatlas-dev libatlas-base-dev + - wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz -O /tmp/glog-0.3.3.tar.gz && tar -C /tmp -xzvf /tmp/glog-0.3.3.tar.gz && rm /tmp/glog-0.3.3.tar.gz + - cd /tmp/glog-0.3.3 && ./configure && make && sudo make install && cd - + - curl http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_6.0-37_amd64.deb -o /tmp/cuda_install.deb && sudo dpkg -i /tmp/cuda_install.deb && rm /tmp/cuda_install.deb + - sudo apt-get -y update && sudo apt-get -y install cuda + - curl https://gitorious.org/mdb/mdb/archive/7f038d0f15bec57b4c07aa3f31cd5564c88a1897.tar.gz -o /tmp/mdb.tar.gz && tar -C /tmp -xzvf /tmp/mdb.tar.gz && rm /tmp/mdb.tar.gz + - cd /tmp/mdb-mdb/libraries/liblmdb/ && make && sudo make install && cd - + +before_script: + - mv Makefile.config.example Makefile.config +script: + - make all + - make test + # - LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64 make runtest +branches: + only: + - master + - dev + - travisci +notifications: + email: + recipients: + - huy@huyng.com + on_success: change + on_failure: always + irc: + channels: + - "chat.freenode.net#caffe" + template: + - "%{repository}/%{branch} (%{commit} - %{author}): %{message}" diff --git a/Makefile.config.example b/Makefile.config.example index 17c90016f75..36ab08cef09 100644 --- a/Makefile.config.example +++ b/Makefile.config.example @@ -51,8 +51,8 @@ PYTHON_LIB := /usr/local/lib # PYTHON_LIB := $(HOME)/anaconda/lib # Whatever else you find you need goes here. -INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include -LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib +INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include $(CUDA_DIR)/include /usr/include/atlas +LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib $(CUDA_DIR)/lib64 /usr/lib/atlas-base BUILD_DIR := build DISTRIBUTE_DIR := distribute diff --git a/README.md b/README.md index 6b45624fe50..70192f6a22a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![Build Status](https://travis-ci.org/huyng/caffe.svg?branch=travisci) + [Caffe: Convolutional Architecture for Fast Feature Extraction](http://caffe.berkeleyvision.org) Created by [Yangqing Jia](http://daggerfs.com), UC Berkeley EECS department.