source: sasview/.travis.yml @ c2e9949

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

BLD: leave matplotlib to apt

  • Property mode set to 100644
File size: 2.0 KB
Line 
1# Test Travis CL
2
3language: python
4
5# can eventually include OSX here.
6matrix:
7    include:
8        - os: linux
9          env: PY=2.7
10
11# whitelist
12branches:
13  only:
14    - master
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
28before_install:
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
43    - conda install --yes python=$PY numpy scipy cython pylint
44    - sudo apt-get update; sudo apt-get install python-pyopencl python-matplotlib
45   
46
47install:
48  - pip install -r build_tools/requirements.txt
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 
55script:
56  - cd ..
57  # this should be the directory above the sasview directory, where we want to
58  # clone the sasmodels
59  - export WORKSPACE=$(pwd)
60  #- export WORKSPACE=/home/travis/build/SasView/
61  #- cd $WORKSPACE
62  - git clone --depth=50 --branch=master https://github.com/SasView/sasmodels.git sasmodels
63  #- export PYTHONPATH=$WORKSPACE/sasview/sasview-install:$WORKSPACE/sasview/utils:$PYTHONPATH
64  - cd $WORKSPACE
65  - ls -ltr
66  - if [ ! -d "utils" ]; then mkdir utils; fi
67  - /bin/sh -xe sasview/build_tools/travis_build.sh
68#  - /bin/sh -xe sasview/build_tools/jenkins_linux_test.sh
69  - export LC_ALL=en_US.UTF-8
70  - export LANG=en_US.UTF-8
71#  - python setup.py docs; echo 0
72#  - python setup.py bdist_egg --skip-build
73
Note: See TracBrowser for help on using the repository browser.