Changeset 4b81e01 in sasview for .travis.yml


Ignore:
Timestamp:
Apr 4, 2017 4:12:57 PM (3 years ago)
Author:
andyfaff
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
c10d5c63
Parents:
dd11014
git-author:
Andrew Nelson <andyfaff@…> (03/19/17 19:35:32)
git-committer:
Andrew Nelson <andyfaff@…> (04/04/17 16:12:57)
Message:

TST: fix travis, use conda

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .travis.yml

    red8f27e7 r4b81e01  
    22 
    33language: python 
    4 python: 
    5   - "2.7" 
     4 
     5# can eventually include OSX here. 
     6matrix: 
     7    include: 
     8        - os: linux 
     9          env: PY=2.7 
     10 
    611# whitelist 
    712branches: 
    813  only: 
    914    - master 
    10 # command to install dependencies 
    11 virtualenv: 
    12   system_site_packages: true 
     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 
    1328before_install: 
    14   - 'if [ $TRAVIS_PYTHON_VERSION == "2.7" ]; then sudo apt-get update;sudo apt-get install python-matplotlib libhdf5-serial-dev python-h5py fglrx opencl-headers python-pyopencl gfortran libblas-dev liblapack-dev libatlas-dev; fi' 
     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 matplotlib cython pylint 
     44    - sudo apt-get update; sudo apt-get install python-pyopencl 
     45     
    1546 
    1647install: 
Note: See TracChangeset for help on using the changeset viewer.