Skip to content

Commit

Permalink
Refactored solver installing architecture following #198.
Browse files Browse the repository at this point in the history
Each solver has now a dedicated class for installation and all the bindings get copied in a specific folder.
  • Loading branch information
mikand committed Nov 7, 2015
1 parent 5f010c9 commit 17131d3
Show file tree
Hide file tree
Showing 5 changed files with 754 additions and 641 deletions.
46 changes: 25 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@ sudo: false
cache:
apt: true
directories:
- ${TRAVIS_BUILD_DIR}/.smt_solvers/z3_bin
- ${TRAVIS_BUILD_DIR}/.smt_solvers/z3
- ${TRAVIS_BUILD_DIR}/.smt_solvers/CVC4_bin
- ${TRAVIS_BUILD_DIR}/.smt_solvers/picosat-960
- ${TRAVIS_BUILD_DIR}/.smt_solvers/repycudd-4861f4df8abc2ca205a6a09b30fdc8cfd29f6ebb
- ${TRAVIS_BUILD_DIR}/.smt_solvers/boolector-2.1.1-with-lingeling-b85
- ${TRAVIS_BUILD_DIR}/.smt_solvers/pyices-aa0b91c39aa00c19c2160e83aad822dc468ce328
- ${TRAVIS_BUILD_DIR}/.smt_solvers/yices-2.3.0
- ${TRAVIS_BUILD_DIR}/.smt_solvers/yices_bin
- ${TRAVIS_BUILD_DIR}/.smt_solvers/mathsat-5.3.8-linux-x86_64
- ${HOME}/.local/lib/python2.7/site-packages
- $HOME/.cache/pip
- ${HOME}/.smt_solvers/btor
- ${HOME}/.cache/pip
- ${HOME}/python_bindings/all
- ${HOME}/python_bindings/msat
- ${HOME}/python_bindings/z3
- ${HOME}/python_bindings/cvc4
- ${HOME}/python_bindings/yices
- ${HOME}/python_bindings/bdd
- ${HOME}/python_bindings/picosat
- ${HOME}/python_bindings/btor

addons:
apt:
Expand Down Expand Up @@ -56,7 +54,7 @@ env:
- PYSMT_SOLVER="z3"
- PYSMT_SOLVER="cvc4"
- PYSMT_SOLVER="yices"
- PYSMT_SOLVER="cudd"
- PYSMT_SOLVER="bdd"
- PYSMT_SOLVER="picosat"
- PYSMT_SOLVER="btor"
- PYSMT_SOLVER="msat_wrap"
Expand All @@ -75,7 +73,7 @@ matrix:
- python: 3.4
env: PYSMT_SOLVER="yices"
- python: 3.4
env: PYSMT_SOLVER="cudd"
env: PYSMT_SOLVER="bdd"
- python: 3.4
env: PYSMT_SOLVER="all"

Expand All @@ -88,7 +86,7 @@ matrix:
- python: pypy
env: PYSMT_SOLVER="yices"
- python: pypy
env: PYSMT_SOLVER="cudd"
env: PYSMT_SOLVER="bdd"
- python: pypy
env: PYSMT_SOLVER="picosat"
- python: pypy
Expand All @@ -105,7 +103,7 @@ matrix:
- python: pypy3
env: PYSMT_SOLVER="yices"
- python: pypy3
env: PYSMT_SOLVER="cudd"
env: PYSMT_SOLVER="bdd"
- python: pypy3
env: PYSMT_SOLVER="picosat"
- python: pypy3
Expand All @@ -115,11 +113,17 @@ matrix:


install:
- pip install six
- source ./travis.sh
# This is for btor that fails to find the python 3 library to link
- "export LIBRARY_PATH=${LIBRARY_PATH}:/opt/python/3.4.2/lib"

- "pip install six"
- if [ "${PYSMT_SOLVER}" == "all" ] || [ "${PYSMT_SOLVER}" == "btor" ]; then pip install cython; fi
- "export BINDINGS_FOLDER=${HOME}/python_bindings/${PYSMT_SOLVER}"
- "mkdir -p ${BINDINGS_FOLDER}"
- "python install.py --confirm-agreement --bindings-path ${BINDINGS_FOLDER}"
- "eval `python install.py --env --bindings-path ${BINDINGS_FOLDER}`"

script:
- env
- python install.py --check
- nosetests pysmt -v
- "env"
- "python install.py --check"
- "nosetests pysmt -v"
2 changes: 0 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import pysmt.cmd.install

pysmt.cmd.install.update_cwd(os.path.dirname(os.path.abspath(__file__)))
pysmt.cmd.install.main()
Loading

0 comments on commit 17131d3

Please sign in to comment.