Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use relative path in travis #769

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Alanscut
Copy link
Contributor

Travis CI的默认工作路径是/home/travis/build/{owner}/, 如ansj_seg项目的owner指的是组织名NLPchina,如果在Travis CI中指定了绝对路径/home/travis/build/NLPchina/,那么当fork仓库配置了自己的Travis CI,则CI会失败,因为fork用户的Travis默认工作路径并不是/home/travis/build/NLPchina/,例如我的fork仓库执行Travis的时候,工作路径是/home/travis/build/Alanscut/,因此就会报错:不存在路径/home/travis/build/NLPchina/

因此如果直接使用相对路径的话,在其他开发者的fork仓库中CI也会执行成功。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant