From 4cb4f288cc2726124c0f4cbe18d782300510e3fa Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Sun, 5 Jun 2016 20:46:54 -0700 Subject: [PATCH] adding continuous integration --- .travis.yml | 18 ++++++++++++++++++ setup.sh | 2 +- test/arrays_test.py | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..49cf9f717 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/setup.sh b/setup.sh index c4813638d..020659b88 100644 --- a/setup.sh +++ b/setup.sh @@ -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 diff --git a/test/arrays_test.py b/test/arrays_test.py index 2bf2c5cf6..9aa0edf3d 100644 --- a/test/arrays_test.py +++ b/test/arrays_test.py @@ -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)