source: sasmodels/.travis.yml @ 1f991d6

core_shell_microgelsmagnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 1f991d6 was 1f991d6, checked in by Paul Kienzle <pkienzle@…>, 7 years ago

add 'test' target to setup.py

  • Property mode set to 100644
File size: 1.8 KB
Line 
1language: python
2sudo: false
3matrix:
4  include:
5  - os: linux
6    env:
7    - PY=2.7
8    - DEPLOY=True
9  - os: linux
10    env:
11    - PY=3.6
12  - os: osx
13    language: generic
14    env:
15    - PY=2.7
16  - os: osx
17    language: generic
18    env:
19    - PY=3.5
20branches:
21  only:
22  - master
23addons:
24  apt:
25    packages: opencl-headers
26before_install:
27- if [[ $encrypted_cb04388797b6_iv ]]; then openssl aes-256-cbc -K $encrypted_cb04388797b6_key -iv $encrypted_cb04388797b6_iv
28  -in .travis/travis_rsa.enc -out .travis/travis_rsa -d; fi;
29- echo $TRAVIS_OS_NAME
30- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
31  -O miniconda.sh; fi;
32- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
33  -O miniconda.sh; fi;
34- bash miniconda.sh -b -p $HOME/miniconda
35- export PATH="$HOME/miniconda/bin:$PATH"
36- hash -r
37- conda update --yes conda
38- conda info -a
39# 2018-01-26 PAK: sasmodels uses yield generator for tests, which isn't supported in pytest 4+
40- conda install --yes python=$PY numpy scipy cython mako docutils cffi setuptools "pytest<4"
41install:
42- pip install bumps
43- pip install unittest-xml-reporting
44script:
45- python --version
46#- python -m sasmodels.model_test -v dll all
47#- python -m pytest -v --cache-clear
48- python setup.py test --pytest-args -v
49before_deploy:
50- echo -e "Host danse.chem.utk.edu\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
51deploy:
52  skip_cleanup: true
53  provider: script
54  script: "/bin/sh -ex ./deploy.sh"
55  on:
56    branch: master
57    condition: $DEPLOY = True
58notifications:
59  slack:
60    secure: xNAUeSu1/it/x9Q2CSg79aw1LLc7d6mLpcqSCTeKROp71RhkFf8VjJnJm/lEbKHNC8yj5H9UHrz5DmzwJzI+6oMt4NdEeS6WvGhwGY/wCt2IcJKxw0vj1DAU04qFMS041Khwclo6jIqm76DloinXvmvsS+K/nSyQkF7q4egSlwA=
Note: See TracBrowser for help on using the repository browser.