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

CI 連携 #11

Closed
r9y9 opened this issue Jun 21, 2017 · 15 comments
Closed

CI 連携 #11

r9y9 opened this issue Jun 21, 2017 · 15 comments
Assignees

Comments

@r9y9
Copy link
Collaborator

r9y9 commented Jun 21, 2017

自分のローカルでは動くけど別の人の環境では動かない、みたいな問題が起きないように、travisなどを利用して継続的にテストを行うのがよいと思います

@k2kobayashi
Copy link
Owner

http://knowledge.sakura.ad.jp/tech/3754/

  • また、Travis CIを無料で利用できるのは一般公開されている(publicな)リポジトリのみだ。GitHubの有料プランを使用して作成したプライベートリポジトリをTravis CIと連携させる場合、有料プランの契約が必要となる。なお、その場合もプロジェクト設定を行ってから最初の100ビルド分まではトライアルとして無料で利用できる。
    private repositoryに対しては,有料の様でした.代替としてwerckerというものがありますが,こちらでも良いですかね.

@k2kobayashi k2kobayashi self-assigned this Jun 22, 2017
@k2kobayashi
Copy link
Owner

k2kobayashi commented Jul 5, 2017

Werckerで実現しようと試みましたが.githubのorganizationに対して,サードパーティアプリの許可が必要みたいでしたので,問い合わせ中です.

@k2kobayashi
Copy link
Owner

k2kobayashi commented Jul 5, 2017

Working in ci branch https://github.com/TakedaLab/sprocket/tree/ci

@r9y9 r9y9 changed the title Travis CI 連携 CI 連携 Jul 5, 2017
@k2kobayashi
Copy link
Owner

k2kobayashi commented Jul 5, 2017

Wercker上のpip install -r requirements.txtのpysptkの依存関係で落ちてる感じです.pysptk側をサクッと変更出来そうならお願いします.cleanな環境にpysptkだけをインストールするならばちゃんと動くのでバグではないと思います.どちらかと言うと,こちら側で依存関係を記述した方が良いかもしれません.
export WERCKER_STEP_ROOT="/pipeline/pip-install-318ea3fd-b3f7-4571-bc44-18efe28d954b"
export WERCKER_STEP_ID="pip-install-318ea3fd-b3f7-4571-bc44-18efe28d954b"
export WERCKER_STEP_OWNER="wercker"
export WERCKER_STEP_NAME="pip-install"
export WERCKER_REPORT_NUMBERS_FILE="/report/pip-install-318ea3fd-b3f7-4571-bc44-18efe28d954b/numbers.ini"
export WERCKER_REPORT_MESSAGE_FILE="/report/pip-install-318ea3fd-b3f7-4571-bc44-18efe28d954b/message.txt"
export WERCKER_REPORT_ARTIFACTS_DIR="/report/pip-install-318ea3fd-b3f7-4571-bc44-18efe28d954b/artifacts"
export WERCKER_PIP_INSTALL_REQUIREMENTS_FILE="requirements.txt"
export WERCKER_PIP_INSTALL_PACKAGES_LIST=""
export WERCKER_PIP_INSTALL_PIP_COMMAND="pip"
export WERCKER_PIP_INSTALL_AUTO_RUN_WHEEL="true"
export WERCKER_PIP_INSTALL_CLEANUP_WHEEL_CACHE="false"
export WERCKER_PIP_INSTALL_EXTRA_ARGS=""
export WERCKER_PIP_INSTALL_EXTRA_WHEEL_ARGS=""
source "/pipeline/pip-install-318ea3fd-b3f7-4571-bc44-18efe28d954b/run.sh" < /dev/null
Environment variable detected for download cache: /pipeline/cache/pip-download-cache
Environment variable detected for find links: /pipeline/cache/pip-download-cache
virtual environment detected.
Running pip install: pip install -r requirements.txt
pip install -r requirements.txt
Collecting numpy (from -r requirements.txt (line 1))
Downloading numpy-1.13.0-cp27-cp27mu-manylinux1_x86_64.whl (16.6MB)
Collecting scipy (from -r requirements.txt (line 2))
Downloading scipy-0.19.1-cp27-cp27mu-manylinux1_x86_64.whl (45.0MB)
Collecting pysptk (from -r requirements.txt (line 3))
Downloading pysptk-0.1.6.tar.gz (387kB)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-R0CEQV/pysptk/setup.py", line 8, in
import numpy as np
ImportError: No module named numpy

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-R0CEQV/pysptk/
failed: pip install failed

@r9y9
Copy link
Collaborator Author

r9y9 commented Jul 5, 2017

ImportError: No module named numpy のエラーメッセージから明らかですが、numpyを事前にインストールする必要があります。

@r9y9
Copy link
Collaborator Author

r9y9 commented Jul 5, 2017

http://pysptk.readthedocs.io/en/latest/introduction.html

The latest release is availabe on pypi. You can install it by:
pip install pysptk
Note that you have to install numpy to build C-extensions.

@k2kobayashi
Copy link
Owner

wercker.ymlにnumpyを先にインストールしてから,pip -r を実行する様に変更しました.

@k2kobayashi
Copy link
Owner

werckerのinvitationを送信しました.

@r9y9
Copy link
Collaborator Author

r9y9 commented Jul 5, 2017

特に何も来ていませんが、僕に対してですかね?

@k2kobayashi
Copy link
Owner

はい.werckerのaddでgithubのメールアドレスを指定しましたが,wercker登録前だから届いてないのかもしれませんね.一度werckerに登録してもらって,userIDを教えてもらえますか?

@r9y9
Copy link
Collaborator Author

r9y9 commented Jul 5, 2017

werchkerにログインすると、 Joined wercker 2 years ago と出たので、登録しているみたいです。user idは r9y9 です

@k2kobayashi
Copy link
Owner

再度試みたところ登録出来たっぽいですが,メールは届きましたか?

@r9y9
Copy link
Collaborator Author

r9y9 commented Jul 5, 2017

お、きました

@k2kobayashi
Copy link
Owner

PR in #28

@k2kobayashi
Copy link
Owner

closed by #28

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

No branches or pull requests

2 participants