Merge pull request #88 from amplab/ci

add continuous integration
This commit is contained in:
Robert Nishihara 2016-06-05 20:48:56 -07:00
commit 80774955c3
3 changed files with 20 additions and 2 deletions

18
.travis.yml Normal file
View file

@ -0,0 +1,18 @@
sudo: required
dist: trusty
language: generic
before_install:
- sudo apt-get -y update
- sudo apt-get -y install git
- sudo add-apt-repository --yes ppa:kalakris/cmake
install:
- bash setup.sh
script:
- cd test
- bash gen-python-code.sh
- python runtest.py
- python arrays_test.py

View file

@ -1,5 +1,5 @@
sudo apt-get update
sudo apt-get install git cmake build-essential python-dev python-numpy automake autoconf libtool python-pip libboost-all-dev unzip
sudo apt-get install -y git cmake build-essential python-dev python-numpy automake autoconf libtool python-pip libboost-all-dev unzip
sudo pip install --ignore-installed six # getting rid of an old version of six, if it is installed (needed for Ubuntu 14.04)
sudo pip install -r requirements.txt
cd thirdparty

View file

@ -81,7 +81,7 @@ class ArraysDistTest(unittest.TestCase):
def testMethods(self):
test_dir = os.path.dirname(os.path.abspath(__file__))
test_path = os.path.join(test_dir, "testrecv.py")
services.start_singlenode_cluster(return_drivers=False, num_objstores=2, num_workers_per_objstore=8, worker_path=test_path)
services.start_singlenode_cluster(return_drivers=False, num_objstores=2, num_workers_per_objstore=5, worker_path=test_path)
x = dist.zeros([9, 25, 51], "float")
y = dist.assemble(x)