代码拉取完成,页面将自动刷新
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/manylinux1_i686
PRE_CMD=linux32
DOCKER_DEPLOY='manylinux1_i686'
TRAVIS_PYTHON_VERSION='3.6'
PLAT=manylinux1_i686
- 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'
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;
- conda update --all --yes;
- cd python;
- git branch -v;
- git describe --tags --dirty;
- ./get_nanoversion.sh;
- cat __nanoversion__.txt;
- cd ..;
- if [[ "$DOCKER_DEPLOY" != "false" ]]; then
conda install --yes pip;
else
conda install --yes pip numpy pyyaml nomkl pytest;
fi;
- pwd
install:
- pwd
- if [[ "$DOCKER_DEPLOY" != "false" ]]; then
if [[ "$TRAVIS_BRANCH" == "rc" ]] || [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker pull $DOCKER_IMAGE;
cd python;
cp -a ../src .;
docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-wheels.sh;
ls wheelhouse/;
mkdir dist;
cp wheelhouse/spglib* dist/;
pwd;
ls dist/;
cd ..;
fi;
fi
script:
- pwd
- if [[ "$DOCKER_DEPLOY" == "false" ]]; then
if [[ "$TRAVIS_BRANCH" != "rc" && "$TRAVIS_BRANCH" != "master" ]]; then
conda install --yes gcc_linux-64;
conda install --yes pip numpy pyyaml nomkl make cmake;
conda install -c conda-forge --yes valgrind;
mkdir _build && cd _build;
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON .. && make spglibtest;
valgrind --leak-check=yes --error-exitcode=123 ./spglibtest;
cd ..;
cd python;
pytest;
cd ..;
fi
fi
before_deploy:
- cd python
deploy:
# testing pypi
- provider: pypi
server: https://test.pypi.org/legacy/
skip_existing: true
skip_cleanup: true
cleanup: false
user: atztogo
password:
secure: "uqsoPpQNbie297e1iDPOHUVqM1HPHeZjIuAutWvVjZF6TpaksDhPNkK9sIE9Wh4sAVLi1wUCtjlMYjC7ElS94tsHwj6+tyxvQtrDmGUWRdf6BjFFZ6CdKBxMJwBQTryCScQGxR81NVlKAzKgZkdrhAxr93kDWmG0thYQrDQO8ihgfxgZUDnZnwarZCiUxwCsT/5VyUv6aRL+epXOUdlPZL2ypiRPlu+9zgwP348OCseh8EtlSLp0uv+K6qOMDVfjQeaEVl0CQIfbkIFMIxPB7xxBNn8pG1aMFJOks6QKo4dq0QhW5eCacPVy/WIQyZ96DNub+zcpFboCIIyWdLO7VFMhyp4PnsqbiTpHLPmImFLWuzaTvCc58Q/QRGRJ3+68kByX/eBWoWgBJED9uX+fSCumfUak+Q9UcVVy/+uh8DJmKlCEWBevk5mVb9evgmLDvpo4q9Vk2U3xv4Cj511PH9JJzcVa3YgznUzLbL93NbSBzlO1/sWYjVp32mPQNekQzOlXCMhqBKkqCIk0Y0INtUNx7v7cA13iEM+QudQQ/sJvCRScNSztYa++W274wo5QxOQeZf5RS8sXzu9bvNvJRpFWsAkyebGVmab597hGgjdVtRMiuaq72+sy45ZCDSSSx0rlEbj6QhYNaSjEqutRBoddTHp7JY1ZT6PKGa/iWPA="
on:
repo: spglib/spglib
branch: rc
tags: false
condition: "$DOCKER_DEPLOY == manylinux1_x86_64 || $DOCKER_DEPLOY == manylinux1_i686 || $DOCKER_DEPLOY == manylinux2010_x86_64"
# testing conda
- provider: script
script: conda/anaconda_deploy.sh rc $ANACONDA_TOKEN $TRAVIS_BRANCH
on:
repo: spglib/spglib
branch: rc
tags: false
condition: "$DOCKER_DEPLOY == false"
# production pypi
- provider: pypi
skip_existing: true
skip_cleanup: true
cleanup: false
user: atztogo
password:
secure: "sjUxbFSrhflB/NqMwcJCmalmQRX1EN4zgsK2YyY93JEk16aep+5pRyV87Q3Q54L19PGOkTqOrGyvUhwxTHUweo87F2DM1gd695bg0rROcquvhwWxlTuhMhMoUGSxDljgKbEeTvLikFd91JX2Rr/deIZLog/c3z/m55MbgHqGoyR5p1twxqLoUcJHznM8Mnn/KTauVHVQKG/6sVQr/h9AhRB8qI5VRCcrnDqAWoePqkgibWjEKchx/lmgW4TiB15IIvmIVgMxNwUa2q91Lqn3AhZDOcB/TST34yZCx8j1TpLJgAtB8+aRnTdmtfhnPWN8gebVuHJni+EQYsq4sIOiRzsU5qHkCzmW2x6I/kcTTYWYW4KybKorWQcypotTkyDoSfFuhZ93kyMy6QXBdV0/3xskBAbA++Mc93u6KaNMDnBGLb9PoeIT6R6YRNnwDAYBSlJ8lMZoNwVKrPhxI11r15eAK/4NamUHSLORBJWYKw1Z1Ko5wjkMXTSC4y7rC5UD+wrgZCfhB7WBLvatGBA3oD83dmEzMl3zA3wyaegDqHbEzKIFCGX5/eKrVN91hQrvlFkVYwf7YHAcNTvplZi0EGotfuZVsyhHiYSXRrMdF16g/NyZwunMEydafsbbwQatLxMhCMufX+5B1bk8VsmM0QDI9EV3rdvC7vgpnO5KPpY="
on:
repo: spglib/spglib
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: spglib/spglib
branch: master
tags: false
condition: "$DOCKER_DEPLOY == false"
after_deploy:
- cd ..
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。