-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
82 lines (76 loc) · 2.49 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
language: python
env:
# ENV can be "pip" or "conda" to select the environment
# PYTEST_ARGS sets the arguments for pytest
#
# pip only parameters
# -------------------
# PIP_SELECTOR sets the optional dependencies to install: "extra" parameters.
# They need to be described in the `extras_require` library in the setup.py file.
#
#
# conda only parameters
# ---------------------
# PYTHON_VERSION sets the python version
#
global:
- PIP_SELECTOR="all, tests"
- PYTEST_ARGS=""
matrix:
include:
- name: "Linux, 3.8, pip"
env: export ENV=pip; PIP_SELECTOR="all, tests"
python: 3.8
- name: "Linux, 3.7, pip"
env: export ENV=pip; PIP_SELECTOR="all, tests"
python: 3.7
- name: "Linux, 3.7, pip, minimum environment"
env: export ENV=pip; PIP_SELECTOR="tests"
python: 3.7
- name: "Linux, 3.6, pip"
env: export ENV=pip; PIP_SELECTOR="all, tests"
python: 3.6
# - name: "MacOSX, 3.7, pip"
# env: export ENV=pip;
# os: osx
# osx_image: xcode11.2
# language: shell
# - name: "MacOSX, 3.8, pip"
# env: export ENV=conda; F=3.8
# os: osx
# osx_image: xcode11.2
# - name: "MacOSX, 3.7, pip"
# env: export ENV=conda; PYTHON_VERSION=3.7
# os: osx
# osx_image: xcode11.2
# language: shell
# if: tag IS present
# - name: "MacOSX, 3.6, pip"
# env: export ENV=conda; PYTHON_VERSION=3.6
# os: osx
# osx_image: xcode11.2
# language: shell
# if: tag IS present
# - name: "Windows, 3.8, pip"
# env: export ENV=pip; PIP_SELECTOR="all, tests"
# language: shell
# os: windows
# before_install:
# - choco install python --version 3.8
# - python -m pip install --upgrade pip
# env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
# Clone the ci-scritps repo to get the ci setup scripts and execute the script
- git clone --depth 1 git://github.com/hyperspy/ci-scripts.git
- source ci-scripts/travis/setup_travis.sh
install:
# Install the package dependencies from the "extra" parameters in your PIP_SELECTOR
# - pip install --upgrade -e .["${PIP_SELECTOR}"]
- # Install the package
- pip install --upgrade https://github.com/hyperspy/hyperspy/archive/RELEASE_next_minor.zip#egg=hyperspy["${PIP_SELECTOR}"]
script:
- which python
- python -c 'import matplotlib.pyplot as plt; print("Matplotlib backend:", plt.get_backend())';
# To use pytest, make sure your PIP_SELECTOR has installed pytest
# - pytest $PYTEST_ARGS;
- python -c 'import hyperspy.api as hs'