From bd2e13caa9b47bfa49b69bf34f98c371d68728c9 Mon Sep 17 00:00:00 2001 From: zimoun Date: Fri, 8 Apr 2016 15:16:09 +0200 Subject: [PATCH 1/5] init TravisCI --- .travis.yml | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..dbd9cb95 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,75 @@ +dist: trusty +sudo: required + +language: python +python: + - "2.7" + +virtualenv: + system_site_packages: true + + +branches: + only: + - eg-travis + except: + - master + + +before_install: + - sudo apt-get update -qq + - sudo apt-get install g++ -qq -y + - sudo apt-get install cmake git make -qq -y + - sudo apt-get install cython python-dev -qq -y +# - sudo apt-get install python-numpy python-scipy -qq -y +## TravisCI uses virtualenv and APT does not work +## instead fix with use this ugly hack using conda + - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh -q + - chmod +x miniconda.sh + - ./miniconda.sh -b -p $HOME/miniconda + - export PATH=$HOME/miniconda/bin:$PATH + - conda update conda -q -y + - conda install numpy scipy -q -y + - python -c 'import numpy' + - python -c 'import scipy' +## same about cython ? + - conda install cython -y -q + + +before_script: + - git branch -avv + +script: + +# ###### step 1: build +# ## travis_wait avoids time out when downloading +# ## and building external dependencies + + - mkdir -p build && cd build + - cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/miniconda + - travis_wait make + +# ###### step 2: install + + - sudo make install + +# ###### step 3: test +# ## travis_wait has troubles with "" +# ## but travis_wait should be useful for intensive tests + +# ## Disable this test, because it does not necessary pass. + - make test ARGS="-E python_tests" + +# ## Run test suite from python + - python -c "import bempp.api ; bempp.api.test()" + + +# +# This after_* is not doing what I expect +# + +after_success: + - echo "Done." + +after_failure: + - echo "Failed." From c61a3405043d2f58f8ae05100921bdf226dc7a30 Mon Sep 17 00:00:00 2001 From: zimoun Date: Fri, 8 Apr 2016 15:21:25 +0200 Subject: [PATCH 2/5] fix bempp.api.test Error instead of Skip without Gmsh --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index dbd9cb95..cd0373f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -63,6 +63,10 @@ script: # ## Run test suite from python - python -c "import bempp.api ; bempp.api.test()" +# ## Re-Run with Gmsh installed + - sudo apt-get install gmsh -q -y + - python -c "import bempp.api ; bempp.api.test()" + # # This after_* is not doing what I expect From 8b54616b8d4b3ed1e1d20d17e637b451a793da39 Mon Sep 17 00:00:00 2001 From: zimoun Date: Fri, 8 Apr 2016 14:09:55 -0300 Subject: [PATCH 3/5] fix cython=0.23.4 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index cd0373f8..9e17f258 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,7 +33,7 @@ before_install: - python -c 'import numpy' - python -c 'import scipy' ## same about cython ? - - conda install cython -y -q + - conda install cython=0.23.4 -y -q before_script: From 3c8770ae2ef2ce6e66b124e3edc559b673faf70a Mon Sep 17 00:00:00 2001 From: zimoun Date: Fri, 8 Apr 2016 17:45:11 -0300 Subject: [PATCH 4/5] fix time-out --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9e17f258..ede9dde7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -47,7 +47,10 @@ script: - mkdir -p build && cd build - cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/miniconda - - travis_wait make + - make TBB + - make Boost + - make Dune + - make # ###### step 2: install From 172d5c31b87ab652d2585ad2e2671cba119749e7 Mon Sep 17 00:00:00 2001 From: zimoun Date: Mon, 16 May 2016 17:06:46 +0200 Subject: [PATCH 5/5] typo --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ede9dde7..07fc4667 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ before_install: - ./miniconda.sh -b -p $HOME/miniconda - export PATH=$HOME/miniconda/bin:$PATH - conda update conda -q -y - - conda install numpy scipy -q -y + - conda install python=2.7 numpy scipy -q -y - python -c 'import numpy' - python -c 'import scipy' ## same about cython ? @@ -42,7 +42,7 @@ before_script: script: # ###### step 1: build -# ## travis_wait avoids time out when downloading +# ## `travis_wait` avoids time out when downloading # ## and building external dependencies - mkdir -p build && cd build @@ -57,7 +57,7 @@ script: - sudo make install # ###### step 3: test -# ## travis_wait has troubles with "" +# ## `travis_wait` has troubles with "" # ## but travis_wait should be useful for intensive tests # ## Disable this test, because it does not necessary pass.