Skip to content

Use the Fatiando a Terra CI scripts #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ env:
- BUILD_DOCS=false
- DEPLOY_DOCS=false
- DEPLOY_PYPI=false
- CONDA_REQUIREMENTS="requirements.txt"
# Need the dev channel to get development builds of GMT 6
- CONDA_FLAGS="--yes --quiet -c conda-forge -c conda-forge/label/dev"
- CONDA_FLAGS="--yes --quiet -c conda-forge/label/dev"

matrix:
# Build under the following configurations
Expand All @@ -50,15 +51,13 @@ matrix:
#- BUILD_DOCS=true

before_install:
# Get Miniconda from Continuum
# Need to source the script to set the PATH variable in this environment
# (not the scripts environment)
- source ci/install-miniconda.sh
- conda update conda $CONDA_FLAGS
- conda create --name testenv python=$PYTHON pip $CONDA_FLAGS
- source activate testenv
# Install dependencies
- conda install --file requirements.txt $CONDA_FLAGS
# Get the Fatiando CI scripts
- git clone https://github.com/fatiando/continuous-integration.git
# Download and install miniconda and setup dependencies
# Need to source the script to set the PATH variable globaly
- source continuous-integration/travis/setup-miniconda.sh
# Install GMT from the dev channel
- conda install --yes --quiet -c conda-forge/label/dev gmt=6.0.0a*
- if [ "$COVERAGE" == "true" ]; then
pip install codecov codacy-coverage codeclimate-test-reporter;
fi
Expand All @@ -76,10 +75,11 @@ script:
make check;
fi
# Run the test suite
# Make pytest report any captured output on stdout or stderr
- if [ "$COVERAGE" == "true" ]; then
make coverage;
make coverage PYTEST_EXTRA="-r P";
else
make test;
make test PYTEST_EXTRA="-r P";
fi
# Build the documentation
- if [ "$BUILD_DOCS" == "true" ]; then
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gmt=6.0.0*
# GMT isn't included because it needs to be downloaded from a separate channel
numpy
pandas
xarray
Expand Down