source: sasmodels/.travis.yml @ 95468ca

core_shell_microgelscostrafo411magnetic_modelticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 95468ca was 95468ca, checked in by lewis, 7 years ago

Try new Travis build

This (should) push a copy of the sasmodels repo to the marketplace
deployment server, so that the model files can be uploaded to the
marketplace.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1language: python
2
3sudo:  false
4
5matrix:
6  include:
7    - os: linux
8      env:
9        - PY=2.7
10    - os: linux
11      env:
12        - PY=3.6
13    - os: osx
14      language: generic
15      env:
16        - PY=2.7
17    - os: osx
18      language: generic
19      env:
20        - PY=3.5
21
22# whitelist
23branches:
24  only:
25    - master
26
27addons:
28  apt:
29    packages:
30      opencl-headers
31
32before_install:
33  - openssl aes-256-cbc -K $encrypted_2459146b3814_key -iv $encrypted_2459146b3814_iv -in .travis/travis_rsa.enc -out .travis/travis_rsa -d
34  - echo $TRAVIS_OS_NAME
35
36  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
37      wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
38    fi;
39  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
40      wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
41    fi;
42
43  - bash miniconda.sh -b -p $HOME/miniconda
44  - export PATH="$HOME/miniconda/bin:$PATH"
45  - hash -r
46  - conda update --yes conda
47
48  # Useful for debugging any issues with conda
49  - conda info -a
50
51  - conda install --yes python=$PY numpy scipy cython mako cffi
52
53  # Not testing with opencl below, so don't need to install it
54  #- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
55  #    pip install pyopencl;
56  #  fi;
57
58install:
59  - pip install bumps
60  - pip install unittest-xml-reporting
61
62script:
63- python --version
64- python -m sasmodels.model_test -v dll all
65
66deploy:
67  skip_cleanup: true
68  provider: script
69  script: /bin/sh -xe ./deploy.sh
70  on:
71    branch: master
72
73notifications:
74  slack:
75    secure: xNAUeSu1/it/x9Q2CSg79aw1LLc7d6mLpcqSCTeKROp71RhkFf8VjJnJm/lEbKHNC8yj5H9UHrz5DmzwJzI+6oMt4NdEeS6WvGhwGY/wCt2IcJKxw0vj1DAU04qFMS041Khwclo6jIqm76DloinXvmvsS+K/nSyQkF7q4egSlwA=
Note: See TracBrowser for help on using the repository browser.