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
|
Rev | Line | |
---|
[3654779] | 1 | # Test Travis CL |
---|
| 2 | |
---|
[b199493] | 3 | language: python |
---|
[4b81e01] | 4 | |
---|
| 5 | # can eventually include OSX here. |
---|
| 6 | matrix: |
---|
| 7 | include: |
---|
| 8 | - os: linux |
---|
| 9 | env: PY=2.7 |
---|
| 10 | |
---|
[b199493] | 11 | # whitelist |
---|
| 12 | branches: |
---|
| 13 | only: |
---|
| 14 | - master |
---|
[4b81e01] | 15 | |
---|
| 16 | addons: |
---|
| 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] | 28 | before_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 |
---|
[c2e9949] | 43 | - conda install --yes python=$PY numpy scipy cython pylint |
---|
| 44 | - sudo apt-get update; sudo apt-get install python-pyopencl python-matplotlib |
---|
[4b81e01] | 45 | |
---|
[b199493] | 46 | |
---|
[83b2227] | 47 | install: |
---|
[637d76d] | 48 | - pip install -r build_tools/requirements.txt |
---|
[8746a74] | 49 | |
---|
| 50 | before_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] | 55 | script: |
---|
[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) |
---|
| 60 | #- export WORKSPACE=/home/travis/build/SasView/ |
---|
| 61 | #- cd $WORKSPACE |
---|
[9631552] | 62 | - git clone --depth=50 --branch=master https://github.com/SasView/sasmodels.git sasmodels |
---|
[c10d5c63] | 63 | #- export PYTHONPATH=$WORKSPACE/sasview/sasview-install:$WORKSPACE/sasview/utils:$PYTHONPATH |
---|
[643d08ba] | 64 | - cd $WORKSPACE |
---|
[9631552] | 65 | - ls -ltr |
---|
[b199493] | 66 | - if [ ! -d "utils" ]; then mkdir utils; fi |
---|
[58918de] | 67 | - /bin/sh -xe sasview/build_tools/travis_build.sh |
---|
[77aec4b] | 68 | # - /bin/sh -xe sasview/build_tools/jenkins_linux_test.sh |
---|
[b199493] | 69 | - export LC_ALL=en_US.UTF-8 |
---|
| 70 | - export LANG=en_US.UTF-8 |
---|
[6455712] | 71 | # - python setup.py docs; echo 0 |
---|
| 72 | # - python setup.py bdist_egg --skip-build |
---|
[a4974fa] | 73 | |
---|
Note: See
TracBrowser
for help on using the repository browser.