diff --git a/content/posts/cocos-with-travisci.md b/content/posts/cocos-with-travisci.md index afb83d4f0..cc6131ac1 100644 --- a/content/posts/cocos-with-travisci.md +++ b/content/posts/cocos-with-travisci.md @@ -68,44 +68,44 @@ language: android # Handle git submodules yourself git: - submodules: false + submodules: false install: -# NDK configuration - - printenv - - echo `pwd` - - wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin - - chmod a+x android-ndk-r10d-linux-x86_64.bin - - ./android-ndk-r10d-linux-x86_64.bin -y | grep -v Extracting # because log will be too long! - - export NDK_ROOT=`pwd`/android-ndk-r10d - - echo $NDK_ROOT - - export PATH=$PATH:$NDK_ROOT - - echo $PATH - -# Android SDK configuration - - export ANDROID_SDK_ROOT=/usr/local/android-sdk - - export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools - -# git submodule -# Use sed to replace the SSH URL with the public URL, then initialize submodules - - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules - - git submodule update --init --recursive - -# cocos setup - - cd ./cocos2d - - python download-deps.py --remove-download=yes - - python ./setup.py - - export COCOS_CONSOLE_ROOT=`pwd`/tools/cocos2d-console/bin - - export PATH=$PATH:$COCOS_CONSOLE_ROOT - - export COCOS_TEMPLATES_ROOT=`pwd`/templates - - export PATH=$PATH:$COCOS_TEMPLATES_ROOT - - export ANT_ROOT=/usr/share/ant/bin - - export PATH=$PATH:$ANT_ROOT - - printenv + # NDK configuration + - printenv + - echo `pwd` + - wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin + - chmod a+x android-ndk-r10d-linux-x86_64.bin + - ./android-ndk-r10d-linux-x86_64.bin -y | grep -v Extracting # because log will be too long! + - export NDK_ROOT=`pwd`/android-ndk-r10d + - echo $NDK_ROOT + - export PATH=$PATH:$NDK_ROOT + - echo $PATH + + # Android SDK configuration + - export ANDROID_SDK_ROOT=/usr/local/android-sdk + - export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools + + # git submodule + # Use sed to replace the SSH URL with the public URL, then initialize submodules + - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules + - git submodule update --init --recursive + + # cocos setup + - cd ./cocos2d + - python download-deps.py --remove-download=yes + - python ./setup.py + - export COCOS_CONSOLE_ROOT=`pwd`/tools/cocos2d-console/bin + - export PATH=$PATH:$COCOS_CONSOLE_ROOT + - export COCOS_TEMPLATES_ROOT=`pwd`/templates + - export PATH=$PATH:$COCOS_TEMPLATES_ROOT + - export ANT_ROOT=/usr/share/ant/bin + - export PATH=$PATH:$ANT_ROOT + - printenv script: - - cd .. - - cocos compile -p android -j 8 + - cd .. + - cocos compile -p android -j 8 ``` 躓き備忘録を以下に記しておく。 @@ -159,7 +159,7 @@ SSH鍵の関係で、gitスキームを用いているsubmoduleの取得に失 ```yaml # Use sed to replace the SSH URL with the public URL, then initialize submodules - - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules +- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules ``` #### 環境変数設定を頑張る diff --git a/content/posts/travis-ci-with-deploygate.md b/content/posts/travis-ci-with-deploygate.md index 733853dc2..c70ade5ed 100644 --- a/content/posts/travis-ci-with-deploygate.md +++ b/content/posts/travis-ci-with-deploygate.md @@ -24,53 +24,53 @@ language: android # Handle git submodules yourself git: - submodules: false + submodules: false env: global: - secure: "TeSR8JLJd2Z0erCxcgLinC+me5SfwpgcCNwiTsqXn09erOgos2+mUbVQaSyo7Bw4OF4TmNpejX+jETd/lL4fTiWRDw6NW/cqEelk57fXJ5mmf5ey+tB1EkMFwd8x7Fw2vBe4xtO8KeohI6D1Gtu1qTYU9t9x4bhAd4qL15Y5osE=" + secure: 'TeSR8JLJd2Z0erCxcgLinC+me5SfwpgcCNwiTsqXn09erOgos2+mUbVQaSyo7Bw4OF4TmNpejX+jETd/lL4fTiWRDw6NW/cqEelk57fXJ5mmf5ey+tB1EkMFwd8x7Fw2vBe4xtO8KeohI6D1Gtu1qTYU9t9x4bhAd4qL15Y5osE=' install: -# NDK configuration - - printenv - - echo `pwd` - - wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin - - chmod a+x android-ndk-r10d-linux-x86_64.bin - - ./android-ndk-r10d-linux-x86_64.bin -y | grep -v Extracting # because log will be too long! - - export NDK_ROOT=`pwd`/android-ndk-r10d - - echo $NDK_ROOT - - export PATH=$PATH:$NDK_ROOT - - echo $PATH - -# Android SDK configuration - - export ANDROID_SDK_ROOT=/usr/local/android-sdk - - export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools - -# git submodule -# Use sed to replace the SSH URL with the public URL, then initialize submodules - - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules - - git submodule update --init --recursive - -# cocos setup - - cd ./cocos2d - - python download-deps.py --remove-download=yes - - python ./setup.py - - export COCOS_CONSOLE_ROOT=`pwd`/tools/cocos2d-console/bin - - export PATH=$PATH:$COCOS_CONSOLE_ROOT - - export COCOS_TEMPLATES_ROOT=`pwd`/templates - - export PATH=$PATH:$COCOS_TEMPLATES_ROOT - - export ANT_ROOT=/usr/share/ant/bin - - export PATH=$PATH:$ANT_ROOT - - printenv - - cd .. + # NDK configuration + - printenv + - echo `pwd` + - wget http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin + - chmod a+x android-ndk-r10d-linux-x86_64.bin + - ./android-ndk-r10d-linux-x86_64.bin -y | grep -v Extracting # because log will be too long! + - export NDK_ROOT=`pwd`/android-ndk-r10d + - echo $NDK_ROOT + - export PATH=$PATH:$NDK_ROOT + - echo $PATH + + # Android SDK configuration + - export ANDROID_SDK_ROOT=/usr/local/android-sdk + - export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools + + # git submodule + # Use sed to replace the SSH URL with the public URL, then initialize submodules + - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules + - git submodule update --init --recursive + + # cocos setup + - cd ./cocos2d + - python download-deps.py --remove-download=yes + - python ./setup.py + - export COCOS_CONSOLE_ROOT=`pwd`/tools/cocos2d-console/bin + - export PATH=$PATH:$COCOS_CONSOLE_ROOT + - export COCOS_TEMPLATES_ROOT=`pwd`/templates + - export PATH=$PATH:$COCOS_TEMPLATES_ROOT + - export ANT_ROOT=/usr/share/ant/bin + - export PATH=$PATH:$ANT_ROOT + - printenv + - cd .. script: - - cocos compile -p android -j 8 + - cocos compile -p android -j 8 after_success: - - echo $TRAVIS_BRANCH - - echo $TRAVIS_PULL_REQUEST - - '[ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ] && curl -F "file=@./bin/debug/android/KonaReflection-debug.apk" -F "token=${DEPLOYGATE_TOKEN}" -F "message=Deploy from Travis CI" https://deploygate.com/api/users/pankona/apps' + - echo $TRAVIS_BRANCH + - echo $TRAVIS_PULL_REQUEST + - '[ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ] && curl -F "file=@./bin/debug/android/KonaReflection-debug.apk" -F "token=${DEPLOYGATE_TOKEN}" -F "message=Deploy from Travis CI" https://deploygate.com/api/users/pankona/apps' ``` ### 前回からの変更点(APKアップロードのために追加した部分) @@ -80,7 +80,7 @@ after_success: ```yaml env: global: - secure: "TeSR8JLJd2Z0erCxcgLinC+me5SfwpgcCNwiTsqXn09erOgos2+mUbVQaSyo7Bw4OF4TmNpejX+jETd/lL4fTiWRDw6NW/cqEelk57fXJ5mmf5ey+tB1EkMFwd8x7Fw2vBe4xtO8KeohI6D1Gtu1qTYU9t9x4bhAd4qL15Y5osE=" + secure: 'TeSR8JLJd2Z0erCxcgLinC+me5SfwpgcCNwiTsqXn09erOgos2+mUbVQaSyo7Bw4OF4TmNpejX+jETd/lL4fTiWRDw6NW/cqEelk57fXJ5mmf5ey+tB1EkMFwd8x7Fw2vBe4xtO8KeohI6D1Gtu1qTYU9t9x4bhAd4qL15Y5osE=' ``` ```yaml