forked from phonopy/phonopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
132 lines (125 loc) · 4.88 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
# python:
# - '2.7'
# - '3.6'
# - '3.7'
matrix:
include:
- python: '3.6'
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
DOCKER_DEPLOY='manylinux1_x86_64'
TRAVIS_PYTHON_VERSION='3.6'
PLAT=manylinux1_x86_64
- python: '3.6'
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64
DOCKER_DEPLOY='manylinux2010_x86_64'
TRAVIS_PYTHON_VERSION='3.6'
PLAT=manylinux2010_x86_64
# - python: '2.7'
# env: DOCKER_DEPLOY=false
# TRAVIS_PYTHON_VERSION='2.7'
- python: '3.6'
env: DOCKER_DEPLOY=false
TRAVIS_PYTHON_VERSION='3.6'
- python: '3.7'
env: DOCKER_DEPLOY=false
TRAVIS_PYTHON_VERSION='3.7'
- python: '3.8'
env: DOCKER_DEPLOY=false
TRAVIS_PYTHON_VERSION='3.8'
before_install:
- echo $DOCKER_DEPLOY
- echo $TRAVIS_BRANCH
- echo $TRAVIS_PYTHON_VERSION
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi;
- echo $TRAVIS_PYTHON_VERSION;
- bash miniconda.sh -b -p $HOME/miniconda;
- export PATH="$HOME/miniconda/bin:$PATH";
- conda update --yes conda;
- echo $TRAVIS_TAG;
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.7" ]]; then
conda init bash;
source $(conda info --root)/etc/profile.d/conda.sh;
fi;
- conda install --yes -c conda-forge python=$TRAVIS_PYTHON_VERSION;
- conda install --yes -c conda-forge gcc_linux-64 gxx_linux-64 matplotlib-base pyyaml scipy numpy spglib h5py setuptools_scm conda-build pip pytest;
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.7" ]]; then
pip install cp2k-input-tools;
fi;
- pwd;
- ./get_nanoversion.sh;
- cat __nanoversion__.txt;
- python setup.py sdist;
- ls dist;
install:
- pwd
- if [[ "$DOCKER_DEPLOY" != "false" ]]; then
if [[ "$TRAVIS_BRANCH" == "rc" ]] || [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker pull $DOCKER_IMAGE;
docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-wheels.sh;
ls wheelhouse/;
mkdir -p dist;
cp wheelhouse/phonopy* dist/;
ls dist/;
fi;
fi
script:
- pwd
- if [[ "$DOCKER_DEPLOY" == "false" ]]; then
if [[ "$TRAVIS_BRANCH" != "rc" && "$TRAVIS_BRANCH" != "master" ]]; then
python setup.py build;
pip install -e .;
pytest;
fi;
fi
deploy:
# testing pypi
- provider: pypi
server: https://test.pypi.org/legacy/
skip_existing: true
skip_cleanup: true
cleanup: false
user: atztogo
password:
secure: "NDepERc9hinMkLT9r7AqywiZJ7vtxCbrPTJO1abzD4SfW3k+y256XbJNqp/7zQNhi8xplVulOkffAOHXyPTEDiNOBWsF1EE13jSFK6kLjCHTXxZ+mMgO+xHwOaHOTqdZRjsEU4gU28aObVm9/GEl2O5xLWmv5ip6rMDQZTx6enCYdo6OzlTny2WvHIjBSj0FztrWmG7hrgIsjtspyJQk/qBNoOy/fnuQ62PX7pOr9nLlQMEd9XroIzRMbsbA+u9u9KsyONtNRNldJnK542SU36lO0v/aN0fqshIEP9FQWi7KI3L3xtrKqkdj8V4YfDY+s+XeoumuFoNU8GPL2M/Eg3iYGlhwMywKU9U1UrEpKmmVg60Tai/nzpGYQF/2oTH4Zg49mYsiFi7B2oGOhJV545j4zS3g9L4hVGRFzim7PZe5cjNgH+OCVtZxY11KJebygoVn7uTRxAtDq4T2ZFYxqtshzoV7uT/lEUkriXKDIbqJd4x6idH3T5rcdEebJGfnpuBjw+sslG9JIWjl1WMBPbHEhzZNH83YUxqjmg/qJw9BZmuSW7BVxgf+5MN/pBtB8YZMnTQ2tKRI/kTvUutvzABSc0AxdkLlsM7SzCh6WAqdkQb5Sch+FhAaiDupn/gp6CAudVoSWC9WhNsB0oGgHLTmwUKkhg01eniwj40SHII="
on:
repo: phonopy/phonopy
branch: rc
tags: false
condition: "$DOCKER_DEPLOY == manylinux1_x86_64 || $DOCKER_DEPLOY == manylinux1_i686 || $DOCKER_DEPLOY == manylinux2010_x86_64"
# testing anaconda
- provider: script
script: conda/anaconda_deploy.sh rc $ANACONDA_TOKEN $TRAVIS_BRANCH
on:
repo: phonopy/phonopy
branch: rc
tags: false
condition: "$DOCKER_DEPLOY == false"
# production pypi
- provider: pypi
skip_existing: true
skip_cleanup: true
cleanup: false
user: atztogo
password:
secure: "Jjr207RsWxHXQU0YNjEat/FEk0BsC0ynSP+nYQM0KLWrWzF/NPrutkqdWmvyA/YMZi/ItUMLbHOL9MCPxCeqW8S7vyLXEIs9b5frM2vcNdEDf74W6ZorwusqPIBE9xhdaJVFSFj+SLiU/9OgAbJNMIl6CwIfKRbg5v2lmVKzIe7PqW4HdWYVOkWh8QukGV4rGPtGc6VYjjPuVx7rOkmkOgoF0+roXJZIbAclEcqnIxzYAkiscQaZgCJmagrYKx9RjGC8Y68su4fw1PutQZ9LJElTJ2ZcqVdJa5AOW0ths9qOEXFSuO7ZoTt7nCzEH5N/Abhh3eQ5bRPh+vSpOOUZtfSlDnD6qOf5rBH1w5KyGs3MbDKVJuGr9HQVoMugI9t+/anGyGj2gDAF6r/XRc73aO0cubiV8WZSnHv5Olsq0948hb1Dqz73m09+eIhDnaPDkSHtsoHTPjaBcgMyWpmgVFh9o+fcNQUZzPIeBJfDPowYyjyvLU+H9OkDgnfnOFvSWQfPrHXMdsxSxUX+NKR6U3XuDLYBYctcBg1DR7Nq9i1/W46/HSTmGduboRU/4WDu2jEQ01uTNzlrE8wk9Hwlx7E822iYYv6e1BrACfnmVYoAbIMMk/yo+W33j+HA96Vp7DhUQ95fHBtXZ0ASC5wDbSi1L9vqs4qugSh40dDZeLg="
on:
repo: phonopy/phonopy
branch: master
tags: false
condition: "$DOCKER_DEPLOY == manylinux1_x86_64 || $DOCKER_DEPLOY == manylinux1_i686 || $DOCKER_DEPLOY == manylinux2010_x86_64"
# production anaconda
- provider: script
script: conda/anaconda_deploy.sh main $ANACONDA_TOKEN $TRAVIS_BRANCH
on:
repo: phonopy/phonopy
branch: master
tags: false
condition: "$DOCKER_DEPLOY == false"