-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
142 lines (112 loc) · 3.53 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
language: python
python:
- "3.6"
install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy pandas
- source activate test-environment
# - pip install -r requirements.txt
- python setup.py install
script:
- conda info --envs
- conda list --name test-environment
- pytest -v pyIsoP/tests/
# language: python
# # Run jobs on container-based infrastructure, can be overridden per job
# matrix:
# include:
# # Extra includes for OSX since python language is not available by default on OSX
# - os: osx
# language: generic
# env: PYTHON_VER=3.6
# # - os: osx
# # language: generic
# # env: PYTHON_VER=3.7
# - os: linux
# language: generic # No need to set Python version since its conda
# env: PYTHON_VER=3.6
# # - os: linux
# # language: generic
# # env: PYTHON_VER=3.7
# before_install:
# # Additional info about the build
# - uname -a
# - df -h
# - ulimit -a
# # Install the Python environment
# - source devtools/travis-ci/before_install.sh
# - python -V
# install:
# # Create test environment for package
# - python devtools/scripts/create_conda_env.py -n=test -p=$PYTHON_VER devtools/conda-envs/test_env.yaml
# # Activate the test environment
# - conda activate test
# # Build and install package
# - python setup.py develop
# script:
# - pytest -v --cov=pyIsoP pyIsoP/tests/
# notifications:
# email: false
# after_success:
# - codecov
# language: python
# # Run jobs on container-based infrastructure, can be overridden per job
# #dist: trusty
# matrix:
# include:
# # Extra includes for OSX since python language is not available by default on OSX
# # - os: linux
# # python: 3.5
# # env: PYTHON_VER=3.5
# - os: linux
# # python: 3.6
# # env: PYTHON_VER=3.6
# # - os: osx
# # language: generic
# # env: PYTHON_VER=3.5
# - os: osx
# # language: python
# # env: PYTHON_VER=3.6
# # before_install:
# # # Additional info about the build
# # - uname -a
# # - df -h
# # - ulimit -a
# # Install the Python environment
# - source devtools/travis-ci/before_install.sh
# - python -V
# install:
# # - sudo apt-get update
# # - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
# # - bash miniconda.sh -b -p $HOME/miniconda
# # - export PATH="$HOME/miniconda/bin:$PATH"
# # - hash -r
# # - conda config --set always_yes yes --set changeps1 no
# # - conda update -q conda
# # - conda info -a
# # - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy pandas
# # - conda update -q --all
# # - source activate test-environment
# Create test environment for package
# - conda create -n test python=$PYTHON_VER pip pytest pytest-cov
# - conda activate test
# # Install pip only modules
# # - pip install pyIsoP
# # - pip install -r requirements.txt
# - python setup.py develop
# - pip install codecov
# # Build and install package
# # - conda build --python=$PYTHON_VER devtools/conda-recipe
# # - conda install --use-local pyIsoP
# script:
# - pytest -v pyIsoP/tests/
# notifications:
# email: false
# after_success:
# - codecov