Last change
on this file since 85531bc was
85531bc,
checked in by andyfaff, 7 years ago
|
BLD: clone bumps so that doc doesn't complain
|
-
Property mode set to
100644
|
File size:
1.9 KB
|
Rev | Line | |
---|
[3654779] | 1 | # Test Travis CL |
---|
| 2 | |
---|
[b199493] | 3 | language: python |
---|
[b812771] | 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 |
---|
[b812771] | 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: |
---|
[b812771] | 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 |
---|
[85531bc] | 43 | - conda install --yes python=$PY numpy scipy cython pylint wxpython |
---|
[138b281] | 44 | - sudo apt-get update; sudo apt-get install python-pyopencl python-matplotlib |
---|
[b812771] | 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: |
---|
[b76b6b7] | 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 |
---|
[85531bc] | 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.