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