io.js on Travis-CIã§Node.jsã®C++ã¢ããªã³ã®ãã«ãã失æãã件
Node.jsã®C++ã¢ããªã³ãTravis-CIã§ãã¹ãããéã«ãio.js@v3ã®ç°å¢ã§ã®ã¿ãã«ãã¨ã©ã¼ãçºçãã¦ããã®ã§åå ã¨å¯¾çãè¨é²ãã¦ããã
â»ãã¼ã¸ã§ã³çã®æ å ±ã¯2015-08-19æç¹ã®ãã®ã§ããã
äºè±¡
[email protected]ã®ç°å¢ã§ä»¥ä¸ã®ãããªãã«ãã¨ã©ã¼ãçºçããã
/home/travis/.node-gyp/3.0.0/include/node/v8.h:336:1: error: expected unqualified-id before âusingâ /home/travis/.node-gyp/3.0.0/include/node/v8.h:468:1: error: expected unqualified-id before âusingâ /home/travis/.node-gyp/3.0.0/include/node/v8.h:499:48: error: âHandleâ does not name a type /home/travis/.node-gyp/3.0.0/include/node/v8.h:499:48: error: ISO C++ forbids declaration of âparameterâ with no type [-fpermissive] /home/travis/.node-gyp/3.0.0/include/node/v8.h:499:54: error: expected â,â or â...â before â<â token ...
åå
Travis-CIã®ããã©ã«ãã®GCCãå¤ããTravis-CI(Nodeåã)ã®GCCã®ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã§ãã£ãã
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
io.js@v3ç¨ã®C++ã¢ããªã³ãã³ã³ãã¤ã«ããããã«ã¯C++11ã«å¯¾å¿ããã³ã³ãã¤ã©ãå¿ è¦ã§ããã*1ãGCC 4.6.3ã¯C++11ã«å¯¾å¿ãã¦ããªãããã¨ã©ã¼ã¨ãªã£ã¦ããã
対ç
æ«å®å¯¾å¦ã¨ãã¦ãio.jsç¨ã®ãã¹ãç°å¢ã§ã¯ãã«ãåã«GCCã®ãã¼ã¸ã§ã³ã4.8.xã«ä¸ãããã¨ã«ããã¨ã©ã¼ãåé¿ããã
以ä¸ã対å¦ãè¡ã£ã.travis.ymlã§ããã
language: "node_js" node_js: - "0.8" - "0.10" - "0.12" - "iojs" before_install: - if [ "$TRAVIS_NODE_VERSION" == "iojs" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi - if [ "$TRAVIS_NODE_VERSION" == "iojs" ]; then sudo apt-get update -qq; fi - if [ "$TRAVIS_NODE_VERSION" == "iojs" ]; then sudo apt-get install -qq g++-4.8; fi - if [ "$TRAVIS_NODE_VERSION" == "iojs" ]; then export CXX="g++-4.8"; fi
追è¨
" container based infrastructure"(sudo:falseãæå®)ã§ã¯ä¸è¨ã®æ¹æ³ã¯ä½¿ç¨ã§ããªããã以ä¸ã®è¨å®ã§ã§ããã
language: "node_js" node_js: - "0.8" - "0.10" - "0.12" matrix: include: - node_js: "iojs" addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 before_install: - export CXX="g++-4.8" sudo: false