| Index: circle.yml |
| diff --git a/circle.yml b/circle.yml |
| deleted file mode 100644 |
| index 021b30015ca01aad51ebb671aa2bf2f984d400c7..0000000000000000000000000000000000000000 |
| --- a/circle.yml |
| +++ /dev/null |
| @@ -1,86 +0,0 @@ |
| -# |
| -# 20150327 pavel@salsitasoft.com |
| -# |
| - |
| -machine: |
| - xcode: |
| - version: "9.0" |
| - pre: |
| - - brew install node || brew upgrade node |
| - - brew install jq # Replace Ruby JSON.parse |
| -# I wanted to be a nice guy and specify node dependency The Right Way (TM) |
| -# with machine:node section. But it requires nvm which is NOT automagically installed |
| -# because the target is not autodetected to be a node project. And it is impossible to |
| -# mimick because while installing nvm _is_ possible, it is not possible to |
| -# "add this and that to .bashrc". The Circle's shell config is a custom .circlerc, the |
| -# name and implementation of which is private to CCI and can change at any time. |
| -# Modifying (appending to) it would be very fragile. |
| -# - brew install nvm |
| -# - mkdir ${HOME}/.nvm |
| -# - source $(brew --prefix nvm)/nvm.sh |
| -# node: |
| -# version: v0.10.31 |
| - environment: |
| -# WARNING WARNING WARNING |
| -# The custom environment variables must not depend on each other |
| -# because the resulting export statements will be flushed to .circlerc |
| -# in an arbitrary order, not the order seen here !!! |
| -# The only safe dependency is Circle-predefined vars because those |
| -# are flushed ahead of the custom vars |
| - XCODE_WORKSPACE: "AdblockBrowser.xcworkspace" |
| - XCODE_SCHEME: "AdblockBrowser" |
| - APP_VERSION: $(/usr/local/bin/jq -r .version $HOME/$CIRCLE_PROJECT_REPONAME/package.json) |
| - CORE_REPONAME: kitt-core |
| -# ^^^ environment section is running in /Users/distiller |
| -# so a directory change to the checked out repo is needed. |
| -# Can't do "cd" or "pushd" because it's refused at time of xctool invocation resolving |
| - IOS_VERSION: "11.0" |
| - IOS_SIMULATOR_VERSION: "11.0.1" |
| -# ^^^ update as the time goes |
| -checkout: |
| - post: |
| - - git submodule update --init |
| - # the main repo which initiated this build was already checked out |
| - - $HOME/$CIRCLE_PROJECT_REPONAME/deploy/checkout-core.sh $CORE_REPONAME $CIRCLE_BRANCH |
| - - ../$CORE_REPONAME/deploy/build-jsapi.sh .. fromci |
| - |
| -dependencies: |
| -# WARNING: This section FORCES a path relative to $HOME/$CIRCLE_PROJECT_REPONAME !!! |
| -# Always prepended by it, no matter whether the path already starts |
| -# with $HOME or another form of fs root reference |
| - pre: |
| - - xcodebuild -showsdks # just to log what CCI supports |
| -# ^^^ as CCI support said, dependencies:pre is the earliest phase where xcode-select was |
| -# already run, so correct SDKs should be displayed |
| - - xcrun instruments -w "iPhone SE ($IOS_SIMULATOR_VERSION)" || true |
| -# ^^^ Circle recommended magic: preboot the simulator runtime |
| - - xcrun simctl list # debug occassional "unavailable simulator" |
| - - deploy/carthage-bootstrap.sh |
| -# Do not specify "override" section to allow CCI inference which speeds up Pods fetching |
| -# https://discuss.circleci.com/t/downloading-cocoapods-specs-from-s3-instead-of-git/7856 |
| -# Override did contain brew install node |
| -# but since 20160909 CircleCI says "Error: node-6.4.0 already installed" |
| - cache_directories: |
| - - "Carthage" |
| - - "Crashlytics" |
| - - "../kitt-core/node_modules" # Caching facility can't interpret variables |
| - |
| -test: |
| - override: |
| - # The colon at the end means "this command as a key has a value of these settings". |
| - # The identation is critical! It's not idented not only to the dash but to the command too. |
| - - $HOME/$CIRCLE_PROJECT_REPONAME/deploy/build.sh iphonesimulator $IOS_VERSION $IOS_SIMULATOR_VERSION : |
| - timeout: 1200 |
| - # - $HOME/$CIRCLE_PROJECT_REPONAME/e2e_tests.sh |
| -deployment: |
| - any: |
| - branch: /.*/ |
| - commands: |
| - # Upload to Hockey is inside build.sh. Can't think of a better way which would not involve |
| - # saving the artifact filenames to temporary file or something. Circle runs each command in |
| - # its own new shell instance so env vars can't be shared. |
| - - chruby system && $HOME/$CIRCLE_PROJECT_REPONAME/deploy/build.sh iphoneos $IOS_VERSION : |
| - timeout: 1200 |
| - # The command chaining is silly, but as stated above, "chruby system" lives only in |
| - # scope of each new shell, so it must be set just before the build script. Putting it |
| - # inside script would be wrong, as it is Circle specific hack, not Xcode invocation issue |