Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
b9e35ed7
提交
b9e35ed7
authored
11月 24, 2016
作者:
Frédéric Bastien
提交者:
GitHub
11月 24, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5266 from notoraptor/travis-update
Add miniconda.sh and installation to TRAVIS cache.
上级
a6f1f6f7
c383b1ae
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
39 行增加
和
13 行删除
+39
-13
.travis.yml
.travis.yml
+12
-13
travis_before_install.sh
.travis/travis_before_install.sh
+13
-0
travis_install.sh
.travis/travis_install.sh
+14
-0
没有找到文件。
.travis.yml
浏览文件 @
b9e35ed7
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
sudo
:
false
sudo
:
false
cache
:
cache
:
directories
:
directories
:
-
$HOME/download
-
$HOME/download/miniconda.sh
-
$HOME/.cache/pip
-
$HOME/.cache/pip
-
$HOME/.theano
-
$HOME/.theano
-
$HOME/download
# Sufficient to add miniconda.sh to TRAVIS cache.
-
$HOME/miniconda2
# Add the installation to TRAVIS cache.
language
:
python
language
:
python
...
@@ -14,15 +14,16 @@ python:
...
@@ -14,15 +14,16 @@ python:
-
"
2.7"
-
"
2.7"
-
"
3.3"
-
"
3.3"
# NB:
# In before_install and install sections below,
# some codes have been moved to separate files
# to better handle if-else shell syntax
# for multiple lines. New files are in
# new folder ".travis".
# command to install dependencies
# command to install dependencies
before_install
:
before_install
:
# Install miniconda to avoid compiling scipy
-
./.travis/travis_before_install.sh
-
mkdir -p download
-
cd download
-
wget -c https://repo.continuum.io/miniconda/Miniconda2-4.1.11-Linux-x86_64.sh -O miniconda.sh
-
chmod +x miniconda.sh
-
./miniconda.sh -b
-
cd ..
-
export PATH=/home/travis/miniconda2/bin:$PATH
-
export PATH=/home/travis/miniconda2/bin:$PATH
addons
:
addons
:
...
@@ -33,14 +34,12 @@ addons:
...
@@ -33,14 +34,12 @@ addons:
-
dvipng
-
dvipng
install
:
install
:
# In Python 3.3, we test the min version of NumPy and SciPy. In Python 2.7, we test more recent version.
-
./.travis/travis_install.sh
# nose-exclude plugin should allow use to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
-
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then conda create --yes -q -n pyenv mkl python=2.7 numpy=1.9.1 scipy=0.14.0 nose=1.3.0 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service libgfortran=1; fi
-
if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then conda create --yes -q -n pyenv mkl python=3.3 numpy=1.9.1 scipy=0.14.0 nose=1.3.4 pip flake8=2.3 six=1.9.0 pep8=1.6.2 pyflakes=0.8.1 sphinx mkl-service; fi
-
source activate pyenv
-
source activate pyenv
-
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install pydot; else pip install pydot-ng; fi
-
if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install pydot; else pip install pydot-ng; fi
-
pip install . --no-deps
-
pip install . --no-deps
-
pip install flake8-future-import nose-parameterized==0.5.0 sphinx_rtd_theme
-
pip install flake8-future-import nose-parameterized==0.5.0 sphinx_rtd_theme
# nose-exclude plugin allow us to tell nosetests to exclude folder with --exclude-dir=path/to/directory.
-
pip install nose-exclude
-
pip install nose-exclude
# command to run tests
# command to run tests
...
...
.travis/travis_before_install.sh
0 → 100755
浏览文件 @
b9e35ed7
#!/usr/bin/env bash
# Install miniconda to avoid compiling scipy
if
test
-e
$HOME
/miniconda2/bin
;
then
echo
"miniconda already installed."
else
echo
"Installing miniconda."
rm
-rf
$HOME
/miniconda2
mkdir
-p
$HOME
/download
if
[[
-d
$HOME
/download/miniconda.sh
]]
;
then
rm
-rf
$HOME
/download/miniconda.sh
;
fi
wget
-c
https://repo.continuum.io/miniconda/Miniconda2-4.1.11-Linux-x86_64.sh
-O
$HOME
/download/miniconda.sh
chmod
+x
$HOME
/download/miniconda.sh
$HOME
/download/miniconda.sh
-b
fi
.travis/travis_install.sh
0 → 100755
浏览文件 @
b9e35ed7
#!/usr/bin/env bash
# In Python 3.3, we test the min version of NumPy and SciPy. In Python 2.7, we test more recent version.
if
test
-e
$HOME
/miniconda2/envs/pyenv
;
then
echo
"pyenv already exists."
else
echo
"Creating pyenv."
if
[[
$TRAVIS_PYTHON_VERSION
==
'2.7'
]]
;
then
conda create
--yes
-q
-n
pyenv
python
=
2.7
;
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
'3.3'
]]
;
then
conda create
--yes
-q
-n
pyenv
python
=
3.3
;
fi
fi
source
activate pyenv
if
[[
$TRAVIS_PYTHON_VERSION
==
'2.7'
]]
;
then
conda
install
--yes
-q
mkl
numpy
=
1.9.1
scipy
=
0.14.0
nose
=
1.3.0 pip
flake8
=
2.3
six
=
1.9.0
pep8
=
1.6.2
pyflakes
=
0.8.1 sphinx mkl-service
libgfortran
=
1
;
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
'3.3'
]]
;
then
conda
install
--yes
-q
mkl
numpy
=
1.9.1
scipy
=
0.14.0
nose
=
1.3.4 pip
flake8
=
2.3
six
=
1.9.0
pep8
=
1.6.2
pyflakes
=
0.8.1 sphinx mkl-service
;
fi
source
deactivate
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论