forked from pycalphad/pycalphad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (61 loc) · 1.96 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: python
sudo: required
dist: trusty
notifications:
email: false
matrix:
include:
# "python" version works for Linux, but is an error on macOS
- name: "Python 3.6 on Xenial Linux"
python: 3.6
dist: xenial
env: DEPLOY_ENC_LABEL=e64cfe3b4e81
- name: "Python 3.7 on Xenial Linux"
python: 3.7
dist: xenial
- name: "Python 3.8 on Xenial Linux"
python: 3.8
dist: xenial
- name: "Python 3.6 on macOS"
language: generic
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
- name: "Python 3.7 on macOS"
os: osx
osx_image: xcode10.1
language: generic
env: TRAVIS_PYTHON_VERSION=3.7
- name: "Python 3.8 on macOS"
os: osx
osx_image: xcode10.1
language: generic
env: TRAVIS_PYTHON_VERSION=3.8
# Setup anaconda
before_install:
- set -e # Exit immediately if a command exits with a non-zero status
- ./ci/travis_legacy_deps.sh
# Install packages
install:
- |
. $HOME/miniconda2/etc/profile.d/conda.sh
conda deactivate
conda activate condaenv
echo "!!! Installing pycalphad dependencies via conda"
conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pytest pytest-cov pandas sympy pyparsing dask dill python-symengine xarray cython cyipopt
echo "!!! conda installing test packages"
# coverage<5, see https://github.com/coveralls-clients/coveralls-python/issues/213
conda install --yes sphinx sphinx_rtd_theme coveralls "coverage<5" ipython
echo "!!! pip pycalphad as editable"
pip install -e .
# Run test
script:
- |
echo "!!! conda list output"
conda list
echo "!!! matplotlib py27 fix"
echo 'backend : Agg' > matplotlibrc
echo "!!! running pytest"
pytest --cov=pycalphad
echo "!!! Running ci/deploy script"
bash ci/deploy.sh
coveralls