-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
45 lines (41 loc) · 1.51 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# file: .travis.yml
# author: Jess Robertson
# Minerals Resources National Research Flagship
# date: Wednesday January 14, 2015
language: python
python:
- "3.4"
- "3.3"
- "2.7"
# Set up test environment
before_install:
- sudo apt-get update -qq
# Install gerris
- wget http://gerris.dalembert.upmc.fr/debian/popinet_key.asc
- sudo apt-key add popinet_key.asc
- sudo add-apt-repository "deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_12.04 ./"
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ precise universe multiverse"
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe multiverse"
- sudo apt-get update -qq
- sudo apt-get install gerris-snapshot
# Install miniconda
- wget http://repo.continuum.io/miniconda/Miniconda-3.4.2-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
# Add Jess' binstar channel to get custom builds
- conda config --add channels jesserobertson
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Start x server
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- conda create -q -n test-pydym python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib h5py
- source activate test-pydym
- python setup.py update_version install
# Command to run tests
script:
- python run_test.py