Trying to include osx in CI
This commit is contained in:
27
.travis.yml
27
.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
|
||||
|
||||
Reference in New Issue
Block a user