forked from pyiron/pyiron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
146 lines (139 loc) · 4.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
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
143
144
145
146
matrix:
include:
- stage: test
name: test_linux_2_7
os: linux
language: python
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh" PYTHONVER="2.7"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- ./.ci_support/setup_miniconda.sh ${MINICONDA}
- python .ci_support/pyironconfig.py
- ./.ci_support/setup_pyiron.sh ${PYTHONVER}
script:
- coverage run --omit pyiron/_version.py -m unittest discover tests
# - ./.ci_support/build_notebooks_on_master.sh
- name: test_linux_3_7
os: linux
language: python
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" PYTHONVER="3.7"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- ./.ci_support/setup_miniconda.sh ${MINICONDA}
- python .ci_support/pyironconfig.py
- ./.ci_support/setup_pyiron.sh ${PYTHONVER}
script:
- coverage run --omit pyiron/_version.py -m unittest discover tests
# - ./.ci_support/build_notebooks_on_master.sh
after_success:
- coveralls
- coverage xml
- pip install codacy-coverage
- python-codacy-coverage -r coverage.xml
deploy:
- provider: pypi
user: pyiron
password: ${PYPI_UPLOAD_TOKEN}
allow_failure: true
on:
branch: master
- provider: pypi
user: pyiron
password: ${PYPI_UPLOAD_TOKEN}
allow_failure: true
on:
tags: true
- name: test_osx_2_7
os: osx
language: generic
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh" PYTHONVER="2.7"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- ./.ci_support/setup_miniconda.sh ${MINICONDA}
- python .ci_support/pyironconfig.py
- ./.ci_support/setup_pyiron.sh ${PYTHONVER}
script:
- coverage run --omit pyiron/_version.py -m unittest discover tests
# - ./.ci_support/build_notebooks_on_master.sh
- name: test_osx_3_7
os: osx
language: generic
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh" PYTHONVER="3.7"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- ./.ci_support/setup_miniconda.sh ${MINICONDA}
- python .ci_support/pyironconfig.py
- ./.ci_support/setup_pyiron.sh ${PYTHONVER}
script:
- coverage run --omit pyiron/_version.py -m unittest discover tests
# - ./.ci_support/build_notebooks_on_master.sh
- stage: documentation
if: branch = master
name: documentation
os: linux
language: python
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" PYTHONVER="3.7"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- ./.ci_support/setup_miniconda.sh ${MINICONDA}
- python .ci_support/pyironconfig.py
- ./.ci_support/setup_pyiron.sh ${PYTHONVER}
script:
- ./.ci_support/build_docs_on_master.sh
deploy:
- provider: pages
repo: pyiron/pyiron.github.io
target_branch: master
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: ../pyiron.github.io
on:
branch: master
- stage: websitevalidation
if: branch = master
name: websitevalidation
os: linux
language: python
script:
- echo -e "from urllib.request import urlopen\nurlopen('https://pyiron.github.io')" > test.py
- python test.py
# - stage: anaconda
# if: branch = master
# name: anaconda
# os: linux
# language: python
# env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" PYTHONVER="3.7"
# install:
# - export PATH="$HOME/miniconda/bin:$PATH"
# - ./.ci_support/setup_miniconda.sh ${MINICONDA} ${PYTHONVER}
# script:
# - ./.ci_support/setup_upload.sh
# deploy:
# - provider: script
# script: conda build --python ${PYTHONVER} --user pyiron --token ${CONDA_UPLOAD_TOKEN} conda/pyiron
# on:
# branch: master
# - provider: script
# script: conda build --python ${PYTHONVER} --user pyiron --token ${CONDA_UPLOAD_TOKEN} conda/pyiron
# on:
# tags: true
- stage: docker
if: branch = master
name: docker
sudo: required
services:
- docker
language: generic
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
script:
- mv binder/docker/* .
- docker build -t pyiron -f ./Dockerfile .
deploy:
- provider: script
skip_cleanup: true
script: ./deploy.sh
on:
all_branches: true
repo: pyiron/examples