-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
81 lines (80 loc) · 2.89 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
dist: bionic
language: python
stages:
- name: test
- name: deploy
addons:
apt:
sources:
- deadsnakes
packages:
- gfortran
- libboost-random-dev
- python3.7-dev
- python3.9-dev
- python3-numpy
- swig
- libmpich-dev
- mpich
jobs:
include:
# Unit tests on different python versions, all on Ubuntu
- stage: test
name: "Python 3.6"
python: "3.6"
env:
- UNIT_TEST=true
- name: "Python 3.7"
python: "3.7"
env:
- UNIT_TEST=true
- name: "Python 3.8"
python: "3.8"
env:
- UNIT_TEST=true
- name: "Python 3.9"
python: "3.9"
env:
- UNIT_TEST=true
# Test coverage and without Pytorch for a single version
- name: "Coverage"
python: "3.8"
env:
- COVERAGE=true
- name: "No pytorch"
python: "3.8"
env:
- NO_PYTORCH=true
- UNIT_TEST=true
- stage: deploy
script:
- echo "Required dummy override of default 'script' in .travis.yml."
after_success:
- echo "Required dummy override of default 'after_success' in .travis.yml."
before_deploy:
- make clean
- mkdir dist
deploy:
- provider: pypi
user: mschoengens
password:
secure: tLopsTVkRfraHb/T1qfNvXk4L3StqpqFTflK0iAq/V+WSdARy7PDccj3P13aDo+Qvd2XYDPTSIVTveTOSHj46oser7+OmqrUYH9jQt681bmJ5aooHhw+3+NHa+fVBxMgzvCqJ+4Gvbf+3eDKowXICfPlTj5UrEil7s1jv91bSIm0HdI+mLyg1YstHOGt0O2Y6QEDPyEVRmFtyq7hB7EPheUvaJAfEl70LxV9fHiOuuQNcp9pnGRO6t9Sx4NIfIPIYzSdBoLaMSwgjy6ua1wF4iyMdKaDhMSajYb2+fWY1iyDJnmFj0/olpYUiZTrfWfQqz2j+uGT/YbmfZmSCcBTQI9ixJCtawqExoZODSq34uzc+N61riXdLEMOroxMobeBhuNj+bykp1IKaE99vYL/q8ta5dID15MtWIjWbLDVYQTQPkJ7fWllyxqOVRwa2rN37QbCctPbKpCs7WvEE7mJAaWJuOprw0AYjd2IH76YULkzbk3nR/v1nwyM2hGTYjePAy6Ue9jPgfeu9jEWu23O4u7+KMa1+scuLRP4DB1nlMStixjAJdiPMIo4OrvAiC8+ocntgi8t9+Quu5N8deyr9nM1pvWQyaNuHt3Yxd5oey3Q5UMtQFRCl5IyQKMTKttBg2p2L4wd0RdfrLgJXWkw/s6SBIyylCCDROr5gMEnPfY=
distributions: "sdist bdist_wheel"
on:
tags: true
branch: master
install:
- sudo apt-get install -y r-base # install R for testing example
- pip install cython
- pip install rpy2 # install the rpy2 library for testing example with R
- pip install -r requirements.txt
- pip install -r requirements/backend-spark.txt
- if [[ ! $NO_PYTORCH == true ]]; then pip install -r requirements/neural_networks_requirements.txt; fi;
- if [[ $COVERAGE == true ]]; then pip install -r requirements/coverage.txt; fi;
before_script:
- python --version
script:
- if [[ $UNIT_TEST == true ]]; then make test; fi;
- if [[ $COVERAGE == true ]]; then make coveragetest; fi;
after_success:
- if [[ $COVERAGE == true ]]; then bash <(curl -s https://codecov.io/bash); fi;