summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Donahue <jeff.donahue@gmail.com>2014-08-17 00:03:28 -0700
committerJeff Donahue <jeff.donahue@gmail.com>2014-08-17 01:07:17 -0700
commitf923a242733733a159be2d46e1e94e77419b763e (patch)
tree8dd7ebd465646c1c120ada243d1534c2c848d112
parentf135665a205490540721471dc4c5ea54cb3dc22f (diff)
downloadcaffeonacl-f923a242733733a159be2d46e1e94e77419b763e.tar.gz
caffeonacl-f923a242733733a159be2d46e1e94e77419b763e.tar.bz2
caffeonacl-f923a242733733a159be2d46e1e94e77419b763e.zip
.travis.yml and .gitignore: various minor cleanup
-rw-r--r--.gitignore1
-rw-r--r--.travis.yml44
2 files changed, 22 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore
index c1989306..d162cb42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -65,6 +65,5 @@ _site
# Eclipse Project settings
*.*project
-
# CMake generated files
*.gen.cmake
diff --git a/.travis.yml b/.travis.yml
index baed23cc..ed021b61 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,17 +10,18 @@ compiler:
# building on Linux.)
# - clang
-
before_install:
- echo $LANG
- echo $LC_ALL
+ - export NUM_THREADS=4
+ - alias make="make --jobs=$NUM_THREADS"
- sudo add-apt-repository ppa:ubuntu-sdk-team/ppa -y
- sudo apt-get -y update
- sudo apt-get -y install wget git curl python-dev python-numpy libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-dev libboost-system-dev libboost-python-dev libhdf5-serial-dev protobuf-compiler libatlas-dev libatlas-base-dev bc cmake
install:
- 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 -j4 && sudo make install -j4 && cd -
+ - cd /tmp/glog-0.3.3 && ./configure && make && sudo make install && 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
@@ -32,45 +33,44 @@ 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 -j4 && sudo make install -j4 && cd -
+ - cd /tmp/mdb-mdb/libraries/liblmdb/ && make && sudo make install && cd -
before_script:
- mv Makefile.config.example Makefile.config
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
- - export NUM_THREADS=4
script:
- # CMake build.
+ # CMake build
- mkdir build
- cd build
- ## CPU-GPU: build only.
+ ## CPU-GPU: build only
- cmake -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release ..
- - make --keep-going --jobs=$NUM_THREADS
+ - make --keep-going
- make clean && rm -rf *
## CPU-only: comprehensive
- cmake -DBUILD_PYTHON=ON -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release -DCPU_ONLY=ON ..
- - make --keep-going --jobs=$NUM_THREADS
- - make runtest --keep-going --jobs=$NUM_THREADS
- - make lint --jobs=$NUM_THREADS
- - make clean && rm -rf *
- ## Cleaning
+ - make --keep-going
+ - make runtest
+ - make lint
+ - make clean
+ ## Cleanup CMake build
- cd ..
- - rm -r build
+ - rm -rf build
# Make build
- ## CPU-GPU: build only.
+ ## CPU-GPU: build only
- export CPU_ONLY=0
- - make --keep-going --jobs=$NUM_THREADS all
+ - make --keep-going all
- make clean
- ## CPU-only: comprehensive.
+ ## CPU-only: comprehensive
- export CPU_ONLY=1
- - make --keep-going --jobs=$NUM_THREADS all test warn lint
+ - make --keep-going 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
+ - make all
+ - make test
+ - make warn
+ - make lint
+ - make pycaffe
notifications:
# Emails are sent to the committer's git-configured email address by default,