summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAdam Kosiorek <a.kosiorek@samsung.com>2014-07-23 07:41:36 (GMT)
committerJeff Donahue <jeff.donahue@gmail.com>2014-08-17 08:07:16 (GMT)
commita2a4d636c9cb4a8f071b1703acfe0aeb6f8d7771 (patch)
tree8f7f015a3aae6676a2f5a9160a7659909bf21565 /.travis.yml
parentc357810c2eed2f677c2a9b22416460a4bca14470 (diff)
downloadcaffeonacl-a2a4d636c9cb4a8f071b1703acfe0aeb6f8d7771.zip
caffeonacl-a2a4d636c9cb4a8f071b1703acfe0aeb6f8d7771.tar.gz
caffeonacl-a2a4d636c9cb4a8f071b1703acfe0aeb6f8d7771.tar.bz2
cmake build configuration for travis-ci
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml47
1 files changed, 33 insertions, 14 deletions
diff --git a/.travis.yml b/.travis.yml
index 7721de1..e596976 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -17,8 +17,12 @@ before_install:
- sudo apt-get -y install wget git curl python-dev python-numpy libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev protobuf-compiler libatlas-dev libatlas-base-dev bc
install:
+ # CMake 2.8.12
+ - wget http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz -O /tmp/cmake.tar.gz && tar -C /tmp -xvf /tmp/cmake.tar.gz && rm /tmp/cmake.tar.gz
+ - cd /tmp/cmake-2.8.12 && ./bootstrap --prefix=/usr && make -j4 && sudo make install -j4 && cd - #&& rm -r /tmp/cmake-2.8.12
+ #
- 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 -
+ - cd /tmp/glog-0.3.3 && ./configure && make -j4 && sudo make install -j4 && cd -
- wget https://github.com/schuhschuh/gflags/archive/master.zip -O /tmp/gflags-master.zip && pushd /tmp/ && unzip gflags-master.zip && cd gflags-master && mkdir build && cd build && export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1 && sudo make install && popd
- 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
@@ -30,7 +34,7 @@ install:
# manually since we did a partial installation.)
- sudo ln -s /usr/local/cuda-6.0 /usr/local/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 -
+ - cd /tmp/mdb-mdb/libraries/liblmdb/ && make -j4 && sudo make install -j4 && cd -
before_script:
- mv Makefile.config.example Makefile.config
@@ -38,19 +42,34 @@ before_script:
- export NUM_THREADS=4
script:
- # CPU-GPU: build only.
- - export CPU_ONLY=0
- - make --keep-going --jobs=$NUM_THREADS all
+ # CMake build.
+ - mkdir build
+ - cd build
+ ## CPU-only build
+ #- cmake -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -DCPU_ONLY=ON ..
+ #- make --keep-going --jobs=$NUM_THREADS
+ #- make clean
+ #- rm -rf *
+ ## GPU + CPU build
+ - cmake -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release ..
+ - make --keep-going --jobs=$NUM_THREADS
- make clean
- # CPU-only: comprehensive.
- - export CPU_ONLY=1
- - make --keep-going --jobs=$NUM_THREADS all test warn lint
- - make runtest
- - make --jobs=$NUM_THREADS all
- - make --jobs=$NUM_THREADS test
- - make --jobs=$NUM_THREADS warn
- - make --jobs=$NUM_THREADS lint
- - make --jobs=$NUM_THREADS pycaffe
+ - cd ..
+ - rm -r build
+
+# # CPU-GPU: build only.
+# - export CPU_ONLY=0
+# - make --keep-going --jobs=$NUM_THREADS all
+# - make clean
+# # CPU-only: comprehensive.
+# - export CPU_ONLY=1
+# - make --keep-going --jobs=$NUM_THREADS all test warn lint
+# - make runtest
+# - make --jobs=$NUM_THREADS all
+# - make --jobs=$NUM_THREADS test
+# - make --jobs=$NUM_THREADS warn
+# - make --jobs=$NUM_THREADS lint
+# - make --jobs=$NUM_THREADS pycaffe
notifications:
# Emails are sent to the committer's git-configured email address by default,