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

Integrate Wercker CI #28

Merged
merged 1 commit into from
Jul 7, 2017
Merged

Integrate Wercker CI #28

merged 1 commit into from
Jul 7, 2017

Conversation

k2kobayashi
Copy link
Owner

@k2kobayashi k2kobayashi commented Jul 5, 2017

Werckerを導入した.python2環境の自動テストが動作する事を確認した.python3への対応 #4 および ドキュメント化とテストコードの作成 #27 は,リンクのブランチで実施中.両者の変更時に,wercker.ymlの追記・編集していくのが良いかと考えてます.

@k2kobayashi k2kobayashi mentioned this pull request Jul 5, 2017
wercker.yml Outdated
- script:
name: pip install -r
code: |
pip install -r requirements.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この script 部分は、次のステップの pip-install で同じコマンドが実行されているようなので、不要だと思います。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あとそもそも、setup.pyでrequirements.txtの中身がinstall_requiresに加えられているので、pip install -r requirements.txt をする必要はないかと

pip install -r requirements
pip install .

ではなく、

pip install .

の一コマンドで依存関係もまとめてインストールできるはずです。

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントthanks. wercker上でのpipの挙動が少し謎で,requirementsに記載された,pysptkをnumpyより先にインストールしようとし,pysptkのインストール時にnumpyがないと怒られる状況だったので上記の様に記述していました.pip install .でsetup.pyが走る事を知りませんでした.ありがとうございます.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

150a312 どうやら,pipのインストールがコケてるみたいです.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#11 (comment) これです

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/wercker/step-pip-install 参考まで

pip install .でsetup.pyが走る事を知りませんでした.

これはそうなのですが、pysptkのsetup.pyが走るときにnumpyは必要なので、numpyを事前にインストールする必要があるのは変わりません

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど.どうやら

- pip-install:
         clean_wheel_dir: true

でも,pip install . が走るようなので,先程修正した部分を省略しました.

modify wercker.yml to install nosetests before testing

ignore .wercker directory for staging
@k2kobayashi
Copy link
Owner Author

マージします. thanks for review.

@k2kobayashi k2kobayashi merged commit 0028785 into master Jul 7, 2017
@k2kobayashi k2kobayashi deleted the ci branch July 20, 2017 08:57
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.

2 participants