From a8f079048cf6a50fa452d1e134d0478fbf4d28f0 Mon Sep 17 00:00:00 2001 From: adam-urbanczyk Date: Sun, 15 Jul 2018 11:57:02 +0200 Subject: [PATCH] Trying to include osx in CI --- .travis.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index ebc81266..0d943c39 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,28 +1,44 @@ language: python +os: + - linux + - osx sudo: false dist: trusty + branches: only: - cq1_pythonocc - master - "/\\d+\\.\\d+\\.?d*\\-*[a-z]*/" + addons: apt: sources: - ubuntu-toolchain-r-test packages: - libstdc++6 + env: global: secure: CVHlDL4GG6uDjvz9TceVjoeCSjO7KUPmcW1xHkLtUpdqVHdI0z7WhlULeZdugeqaaK9My37E5TvaJgVpW2fhCNguKJfVVWUE0khLB76dinWrio1BPaTxPKqI63tYFArHVqiLQMK2ZI7ZvnrUK+rlaNOkAMpczrZDXANZfVP73ksTGG4+252mWdUY0jRXJr+he4+uKI6l3Z6bd/GbIRfEIi4gfibZNLDLWvlbpyW3/jLy8yOSXuA5Ed0Oods/WGB/q+jQzJxFV9loWeEafvMpz6cjmgJ0ST3l5FA/ZzGzAtgH+fpXDAcUIFXrKciDF2YaFYhDvWF9d94swZYNXvWfAS/4cGMjgABX03nIcXZVz9iWfmi7/I5PE0O7xCjA2XOF7d1124h5y6oMbK+jV/+IzvmM4bQ295ixY84/G9okoV4Q6mSukVQ3zCK9saF2BC+oNP3SEkH+Sd5ZrsgFXDPK27RHV84Nj1xLiZ4F810v1nsw7afBUs8APts9uAMuyIhg6/4ir9S/OQ83Ox/3YlaL01+EzAliGkMmMZLvvISxgPk6TMsJxpN4ixirSuWOygRDpfMGwX2dYUw1v8qwfCkvEqMoKkfGhNY+YoCGlO0y3lslU4iaQElRwtrr8jCP3sS5f+9RvbPRvzKryI89MuqnqBq8w0JqYKPYy2OkCYLfzZg= + matrix: include: - python: 2.7 - python: 3.6 + before_install: -- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh - -O miniconda.sh; else wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh - -O miniconda.sh; fi +- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then + PY_MAJOR=2 ; + else + PY_MAJOR=3 ; + fi ; + if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + OS=Linux ; + else + OS=MacOSX ; + fi ; + wget https://repo.continuum.io/miniconda/Miniconda$PY_MAJOR-latest-$OS-x86_64.sh -O miniconda.sh - bash miniconda.sh -b -p $HOME/miniconda; - export PATH="$HOME/miniconda/bin:$HOME/miniconda/lib:$PATH"; - hash -r; @@ -31,15 +47,20 @@ before_install: pyparsing mock; - source ~/miniconda/bin/activate test_cq; - python -c 'import OCC.gp as gp; print(gp.gp_Vec())' + install: - python setup.py install + script: - python runtests.py + after_success: - codecov + before_deploy: - conda install anaconda-client conda-build - sh conda_build.sh + deploy: - provider: script skip_cleanup: true