LoginSignup
2
1

More than 5 years have passed since last update.

iOSビルド用のCircleCIでnodeを使う

Last updated at Posted at 2015-10-23

※11/27 追記
https://circleci.com/gh/noboru-i/kyouen-ios/299 (without cacheで実行)
現在は、node-6.9.1がインストール済みのようです。
現時点の最新のLTSが入っているようなので、このまま使って問題無さそうですね。
この記事は不要になりました。

やりたかったこと

iOSのテストをAppiumで行いたかった。

やったこと

npm install -g appiumとしてみた。
npm: command not foundと言われた。
iOSビルド用のmacには、nodeがインストールされていない模様。(通常のLinuxマシンであれば、もちろんインストールされています)

circle.ymlに下記を追加してみた。

machine:
  node:
    version: 0.10.34

nvm: command not found と言われた。

気づいた

Homebrewでインストールしたらええやん?

circle.ymlに下記を追加。

dependencies:
  pre:
  - brew install node

nodeが正常にインストールされ、npmも実行できました。
これで、CircleCI上で、Appiumのテストが出来そうです。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1