(command.CommandList
  children: [
    (C {<set>} {<-ex>})
    (C {<source>} {($ Id.VSub_DollarName TRAVIS_BUILD_DIR) <'/ci/travis_env_common.sh'>})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_Number 1))} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <--only-library>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'only_library_mode='>
                      name: only_library_mode
                    )
                  op: assign_op.Equal
                  rhs: {<yes>}
                  spids: [86]
                )
              ]
              redirects: []
            )
          ]
          spids: [65 83]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: 
                (sh_lhs_expr.Name
                  left: <Id.Lit_VarLike 'only_library_mode='>
                  name: only_library_mode
                )
              op: assign_op.Equal
              rhs: {<no>}
              spids: [92]
            )
          ]
          redirects: []
        )
        (C {<source>} {($ Id.VSub_DollarName TRAVIS_BUILD_DIR) <'/ci/travis_install_conda.sh'>})
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName ARROW_TRAVIS_USE_TOOLCHAIN))} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <1>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<conda>} {<create>} {<-y>} {<-q>} {<-p>} {($ Id.VSub_DollarName CPP_TOOLCHAIN)} 
              {<Id.Lit_VarLike 'python='> <2.7>} {<Id.Lit_VarLike 'jemalloc='> <4.4.0>} {<nomkl>} {<boost-cpp>} {<rapidjson>} {<flatbuffers>} {<gflags>} 
              {<lz4-c>} {<snappy>} {<zstd>} {<brotli>} {<zlib>} {<cmake>} {<curl>} {<thrift-cpp>} {<ninja>}
            )
            (C {<conda>} {<update>} {<-y>} {<-p>} {($ Id.VSub_DollarName CPP_TOOLCHAIN)} 
              {<ca-certificates>} {<-c>} {<defaults>}
            )
          ]
          spids: [104 122]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName TRAVIS_OS_NAME)} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <osx>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<brew>} {<update>})
                (C {<brew>} {<bundle>} {<--file> <Id.Lit_Equals '='> <'cpp/Brewfile'>})
              ]
            )
          ]
          spids: [234 250]
        )
      ]
      else_action: []
      redirects: []
    )
    (C {<mkdir>} {($ Id.VSub_DollarName ARROW_CPP_BUILD_DIR)})
    (C {<pushd>} {($ Id.VSub_DollarName ARROW_CPP_BUILD_DIR)})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'CMAKE_COMMON_FLAGS='> name:CMAKE_COMMON_FLAGS)
          op: assign_op.Equal
          rhs: 
            {
              (DQ <'-DARROW_BUILD_BENCHMARKS=ON '> <'-DCMAKE_INSTALL_PREFIX='> 
                ($ Id.VSub_DollarName ARROW_CPP_INSTALL) <' '> <'-DARROW_NO_DEPRECATED_API=ON '> <'-DARROW_EXTRA_ERROR_CONTEXT=ON'>
              )
            }
          spids: [279]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'CMAKE_LINUX_FLAGS='> name:CMAKE_LINUX_FLAGS)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [293]
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'CMAKE_OSX_FLAGS='> name:CMAKE_OSX_FLAGS)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [297]
        )
      ]
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName only_library_mode)} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <yes>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'CMAKE_COMMON_FLAGS='>
                      name: CMAKE_COMMON_FLAGS
                    )
                  op: assign_op.Equal
                  rhs: 
                    {
                      (DQ ($ Id.VSub_DollarName CMAKE_COMMON_FLAGS) <' '> <'-DARROW_BUILD_TESTS=OFF '> 
                        <'-DARROW_BUILD_UTILITIES=OFF '> <'-DARROW_INSTALL_NAME_RPATH=OFF'>
                      )
                    }
                  spids: [321]
                )
              ]
              redirects: []
            )
          ]
          spids: [302 318]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName ARROW_TRAVIS_USE_TOOLCHAIN)} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <1>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'CMAKE_COMMON_FLAGS='>
                      name: CMAKE_COMMON_FLAGS
                    )
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName CMAKE_COMMON_FLAGS) <' -GNinja'>)}
                  spids: [359]
                )
              ]
              redirects: []
            )
          ]
          spids: [340 356]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName ARROW_TRAVIS_PLASMA)} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <1>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'CMAKE_COMMON_FLAGS='>
                      name: CMAKE_COMMON_FLAGS
                    )
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName CMAKE_COMMON_FLAGS) <' -DARROW_PLASMA=ON'>)}
                  spids: [387]
                )
              ]
              redirects: []
            )
          ]
          spids: [368 384]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName ARROW_TRAVIS_VALGRIND)} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <1>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: 
                    (sh_lhs_expr.Name
                      left: <Id.Lit_VarLike 'CMAKE_COMMON_FLAGS='>
                      name: CMAKE_COMMON_FLAGS
                    )
                  op: assign_op.Equal
                  rhs: {(DQ ($ Id.VSub_DollarName CMAKE_COMMON_FLAGS) <' -DARROW_TEST_MEMCHECK=ON'>)}
                  spids: [415]
                )
              ]
              redirects: []
            )
          ]
          spids: [396 412]
        )
      ]
      else_action: []
      redirects: []
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName TRAVIS_OS_NAME)} 
                      {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <linux>)} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<cmake>} {($ Id.VSub_DollarName CMAKE_COMMON_FLAGS)} 
              {($ Id.VSub_DollarName CMAKE_LINUX_FLAGS)} {<-DBUILD_WARNING_LEVEL> <Id.Lit_Equals '='> <CHECKIN>} {($ Id.VSub_DollarName ARROW_CPP_DIR)}
            )
          ]
          spids: [424 440]
        )
      ]
      else_action: [
        (C {<cmake>} {($ Id.VSub_DollarName CMAKE_COMMON_FLAGS)} 
          {($ Id.VSub_DollarName CMAKE_OSX_FLAGS)} {<-DBUILD_WARNING_LEVEL> <Id.Lit_Equals '='> <CHECKIN>} {($ Id.VSub_DollarName ARROW_CPP_DIR)}
        )
      ]
      redirects: []
    )
    (C {($ Id.VSub_DollarName TRAVIS_MAKE)} {<-j4>})
    (C {($ Id.VSub_DollarName TRAVIS_MAKE)} {<install>})
    (C {<popd>})
  ]
)