Skip to content
GitLab
菜单
项目
群组
代码片段
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
NJU Geophy
MGPro
提交
70ba0447
提交
70ba0447
编辑于
6月 29, 2019
作者:
Mijian Xu
😷
浏览文件
Update .gitlab-ci.yml
上级
c391dc7a
流水线
#734
已通过 ,包含阶段
in 7 minute 和 56 second
变更
1
流水线
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
浏览文件 @
70ba0447
...
...
@@ -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
:
...
...
编辑
预览
Supports
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录