commit
81c86f9b7b
@ -0,0 +1,35 @@
|
|||||||
|
language: cpp
|
||||||
|
cache: ccache
|
||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- gcc-4.8
|
||||||
|
- g++-4.8
|
||||||
|
- wget
|
||||||
|
- git
|
||||||
|
- build-essential
|
||||||
|
- libatlas-base-dev
|
||||||
|
- python
|
||||||
|
- python-pip
|
||||||
|
- python2.7-dev
|
||||||
|
- m4
|
||||||
|
- libprotobuf-dev
|
||||||
|
- protobuf-compiler
|
||||||
|
- python-protobuf
|
||||||
|
- python-numpy
|
||||||
|
- python-wheel
|
||||||
|
- libgoogle-glog-dev
|
||||||
|
- libgflags-dev
|
||||||
|
- libgtest-dev
|
||||||
|
before_install:
|
||||||
|
- pip install wheel protobuf
|
||||||
|
- sudo paddle/scripts/travis/before_install.sh
|
||||||
|
script:
|
||||||
|
- paddle/scripts/travis/build.sh
|
||||||
|
- paddle/scripts/travis/unittest.sh
|
||||||
|
notifications:
|
||||||
|
email:
|
||||||
|
on_success: change
|
||||||
|
on_failure: always
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
pushd /usr/src/gtest
|
||||||
|
cmake .
|
||||||
|
make
|
||||||
|
sudo cp *.a /usr/lib
|
||||||
|
popd
|
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd `dirname $0`
|
||||||
|
cd ../../../
|
||||||
|
set -e
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DWITH_GPU=OFF -DWITH_DOC=OFF -DWITH_TESTING=ON -DON_TRAVIS=ON
|
||||||
|
make -j `nproc`
|
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
cd `dirname $0`
|
||||||
|
cd ../../../build
|
||||||
|
env CTEST_OUTPUT_ON_FAILURE=1 make test ARGS="-j `nproc`"
|
||||||
|
|
Loading…
Reference in new issue