Commit f4acf959 authored by Pierre Augier's avatar Pierre Augier
Browse files

Clean up CI files

parent d088b6822800
Pipeline #11396 passed with stage
in 2 minutes and 27 seconds
......@@ -4,5 +4,5 @@ variables:
tests:
image: fluiddyn/python3-stable:heptapod
script:
- pip install -U tox --user
- pip install -U pip tox --user
- tox -e py36,codecov
sudo: false
dist: focal
language: python
python:
- 3.6
# - pypy3 # No pypy3 in Xenial and pypy3.5-5.8.0 is too old (https://bitbucket.org/pypy/pypy/issues/2747)
- 3.7
env:
- TOXENV=py,codecov-travis
matrix:
include:
- python: 3.7
env: TOXENV=py,codecov-travis
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
- TOXENV=py37,codecov-travis
before_cache:
- |
coverage erase
rm -f $HOME/.cache/pip/log/debug.log
coverage erase
rm -f $HOME/.cache/pip/log/debug.log
cache:
directories:
- $HOME/.cache/pip
- $TRAVIS_BUILD_DIR/.tox
directories:
- $HOME/.cache/pip
- $TRAVIS_BUILD_DIR/.tox
addons:
apt:
packages:
- libfftw3-dev
- libhdf5-dev
- libopenmpi-dev
- openmpi-bin
- libopenblas-dev
# - liblapack-dev # for NumPy from source for PyPy
# - gfortran # for SciPy from source
install:
- pip install -U pip setuptools wheel colorlog
- pip install -U pip setuptools colorlog
- pip install -U tox-travis coverage pytest
- pip install -U fluiddevops
- pip install -U pyfftw
before_script:
- |
......
......@@ -10,11 +10,10 @@
# this directory.
[tox]
envlist =
py{36,37}, pypy, pypy3
py{36,37,38}
codecov
[testenv]
sitepackages = True
extras =
test
mpi
......@@ -24,17 +23,18 @@ commands =
[testenv:codecov]
passenv = CODECOV_TOKEN
sitepackages = True
deps = codecov
whitelist_externals = make
skip_install = true
commands =
make report_coverage
codecov --file .coverage/coverage.xml
codecov --file .coverage/coverage.xml --commit {env:CI_COMMIT_SHA} \
--branch {env:CI_COMMIT_BRANCH} --name Heptapod_{env:CI_JOB_ID}
[testenv:codecov-travis]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
whitelist_externals = make
skip_install = true
commands =
make report_coverage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment