Skip to content

Commit

Permalink
Merge pull request #21 from brittonsmith/migrate
Browse files Browse the repository at this point in the history
Migrate to Github
  • Loading branch information
Nathan Goldbaum committed Aug 14, 2018
2 parents 2e6f5c7 + 8be45b7 commit f83a375
Show file tree
Hide file tree
Showing 12 changed files with 242 additions and 199 deletions.
File renamed without changes.
8 changes: 0 additions & 8 deletions .hgtags

This file was deleted.

87 changes: 87 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
language: python
sudo: false
cache:
directories:
- $HOME/.ccache # https://github.com/travis-ci/travis-ci/issues/5853
pip: true

addons:
apt:
update: true
packages:
- csh
- libhdf5-serial-dev
- gfortran
- libtool

env:
global:
YT_DATA_DIR=$HOME/yt_test

before_install:
- |
echo "backend : Agg" > $HOME/matplotlibrc
export MATPLOTLIBRC=$HOME
# Download test data
mkdir -p $YT_DATA_DIR
pushd $YT_DATA_DIR
wget --quiet http://yt-project.org/data/IsolatedGalaxy.tar.gz
tar xzf IsolatedGalaxy.tar.gz
popd
install:
- |
# setup environment
ccache -s
# Upgrade pip and setuptools and wheel to get clean install
pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade setuptools
# Install dependencies
pip install numpy cython h5py matplotlib fastcache flake8 pytest yt
# Install Grackle
./configure
cd src/clib
make machine-linux-gnu
if [[ $TRAVIS_BUILD_STAGE_NAME = "Omp" ]]; then
make omp-on
fi
make
mkdir -p $HOME/local
make install
export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
if [[ $TRAVIS_BUILD_STAGE_NAME != "Omp" ]]; then
cd ../python
python setup.py develop
fi
cd ../
jobs:
include:
- stage: tests
name: "tests with Python 2.7"
python: 2.7
script: py.test python/tests

- stage: tests
name: "tests with Python 3.5"
python: 3.5
script: py.test python/tests

- stage: tests
name: "tests with Python 3.6"
python: 3.6
script: py.test python/tests

- stage: omp
name: "Code example tests with OpenMP"
python: 3.6
before_install: skip
script:
- |
export OMP_NUM_THREADS=4
py.test python/tests/test_code_examples.py
stages:
- tests
- omp

0 comments on commit f83a375

Please sign in to comment.