source: sasview/.travis.yml @ 7f75a3f

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 7f75a3f was 4636f57, checked in by andyfaff, 8 years ago

wrangling travis

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[3654779]1# Test Travis CL
2
[b199493]3language: python
[4b81e01]4
5matrix:
[83cd257]6  include:
7    - os: linux
8      env:
9        - PY=2.7
10        - NUMPYSPEC=numpy
11    - os: osx
12      language: generic
13      env:
14        - PY=2.7
15        - NUMPYSPEC=numpy
[4b81e01]16
[b199493]17# whitelist
18branches:
19  only:
20    - master
[4b81e01]21
22addons:
[83cd257]23  apt:
24    packages:
25      - opencl-headers
26      - fglrx
27      - libblas-dev
28      - libatlas-dev
29      - libatlas-base-dev
30      - liblapack-dev
31      - gfortran
32      - libhdf5-serial-dev
[4b81e01]33
[b199493]34before_install:
[83cd257]35  - echo $TRAVIS_OS_NAME
36  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
37        wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
38        sudo apt-get update; sudo apt-get install python-pyopencl;
39    elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
40        wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
41    fi
[02ba2df]42
[83cd257]43  - bash miniconda.sh -b -p $HOME/miniconda
44  - export PATH="$HOME/miniconda/bin:$PATH"
45  - hash -r
46  - conda update --yes conda
[4b81e01]47
[83cd257]48  # Useful for debugging any issues with conda
49  - conda info -a
[4b81e01]50
[83cd257]51  # could install other dependencies, but they're locked to specific
52  # versions in build/requirements.txt
53  - conda install --yes python=$PY $NUMPYSPEC scipy cython pylint wxpython
[b199493]54
[83b2227]55install:
[637d76d]56  - pip install -r build_tools/requirements.txt
[fafff1a]57  - pip install matplotlib
[8746a74]58
[4636f57]59#before_script:
60#  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
61#        "export DISPLAY=:99.0"; "sh -e /etc/init.d/xvfb start"; sleep 3; # give xvfb some time to start
62#    fi
[02ba2df]63
[b199493]64script:
[c10d5c63]65  - cd ..
66  # this should be the directory above the sasview directory, where we want to
67  # clone the sasmodels
68  - export WORKSPACE=$(pwd)
[9631552]69  - git clone --depth=50 --branch=master https://github.com/SasView/sasmodels.git sasmodels
[2114e8b]70
71  # required for documentation
72  - git clone --depth=50 --branch=master https://github.com/bumps/bumps.git
73
[9631552]74  - ls -ltr
[b199493]75  - if [ ! -d "utils" ]; then mkdir utils; fi
[58918de]76  - /bin/sh -xe sasview/build_tools/travis_build.sh
[b199493]77  - export LC_ALL=en_US.UTF-8
78  - export LANG=en_US.UTF-8
[6455712]79#  - python setup.py docs; echo 0
80#  - python setup.py bdist_egg --skip-build
[a4974fa]81
Note: See TracBrowser for help on using the repository browser.