source: sasview/.travis.yml @ fafff1a

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 fafff1a was fafff1a, checked in by andyfaff, 7 years ago

BLD: install matplotlib via pip.

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