提交 70ba0447 编辑于 作者: Mijian Xu's avatar Mijian Xu 😷
浏览文件

Update .gitlab-ci.yml

上级 c391dc7a
流水线 #734 已通过 ,包含阶段
in 7 minute 和 56 second
...@@ -6,17 +6,13 @@ image: continuumio/miniconda3:latest ...@@ -6,17 +6,13 @@ image: continuumio/miniconda3:latest
# Change pip's cache directory to be inside the project directory since we can # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
# Pip's cache doesn't store the python packages # Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching # https://pip.pypa.io/en/stable/reference/pip_install/#caching
# #
# If you want to also cache the installed packages, you have to install # If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well. # them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
variables: variables:
TWINE_USERNAME: xumi1993 TWINE_USERNAME: xumi1993
...@@ -24,14 +20,12 @@ variables: ...@@ -24,14 +20,12 @@ variables:
before_script: before_script:
- conda config --set always_yes yes - conda config --set always_yes yes
- conda update -q conda
- conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ - conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
- conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ - conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
- conda config --add channels conda-forge - conda config --add channels conda-forge
# - conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ # - conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
- pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple - pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- conda info -a - conda info -a
- pip install twine setuptools wheel
# test: # test:
# script: # script:
...@@ -43,6 +37,7 @@ py37: ...@@ -43,6 +37,7 @@ py37:
script: script:
- conda create -n testenv37 python=3.7 - conda create -n testenv37 python=3.7
- source activate testenv37 - source activate testenv37
- pip install twine setuptools wheel
- python setup.py sdist bdist_wheel - python setup.py sdist bdist_wheel
# an alternative approach is to install and run: # an alternative approach is to install and run:
# run the command here # run the command here
...@@ -51,6 +46,7 @@ py36: ...@@ -51,6 +46,7 @@ py36:
script: script:
- conda create -n testenv36 python=3.6 - conda create -n testenv36 python=3.6
- source activate testenv36 - source activate testenv36
- pip install twine setuptools wheel
- python setup.py sdist bdist_wheel - python setup.py sdist bdist_wheel
after_script: after_script:
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册