Commit 70ba0447 authored by Mijian Xu's avatar Mijian Xu 😷

Update .gitlab-ci.yml

parent c391dc7a
Pipeline #734 passed with stage
in 7 minutes and 56 seconds
......@@ -6,17 +6,13 @@ image: continuumio/miniconda3:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
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
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
variables:
TWINE_USERNAME: xumi1993
......@@ -24,14 +20,12 @@ variables:
before_script:
- 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/main/
- conda config --add channels 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
- conda info -a
- pip install twine setuptools wheel
# test:
# script:
......@@ -43,6 +37,7 @@ py37:
script:
- conda create -n testenv37 python=3.7
- source activate testenv37
- pip install twine setuptools wheel
- python setup.py sdist bdist_wheel
# an alternative approach is to install and run:
# run the command here
......@@ -51,6 +46,7 @@ py36:
script:
- conda create -n testenv36 python=3.6
- source activate testenv36
- pip install twine setuptools wheel
- python setup.py sdist bdist_wheel
after_script:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment