(command.CommandList
  children: [
    (C {(Id.KW_Set set)} {(-e)})
    (C {(source)} {($ Id.VSub_DollarName '$TRAVIS_BUILD_DIR') (/ci/travis_env_common.sh)})
    (C {(pushd)} {($ Id.VSub_DollarName '$ARROW_C_GLIB_DIR')})
    (C {(export)} 
      {(Id.Lit_VarLike 'LD_LIBRARY_PATH=') ($ Id.VSub_DollarName '$LD_LIBRARY_PATH') 
        (Id.Lit_Other ':') ($ Id.VSub_DollarName '$ARROW_CPP_INSTALL') (/lib)
      }
    )
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_SYSTEM')} 
                  {(Id.Lit_Equals '=')} {(DQ (autotools))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:90)
            )
          ]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:arrow_c_glib_lib_dir)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_DollarName '$ARROW_C_GLIB_INSTALL') (/lib)}
                  spids: [95]
                )
              ]
            )
          ]
          spids: [77 92]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:arrow_c_glib_lib_dir)
              op: assign_op.Equal
              rhs: 
                {($ Id.VSub_DollarName '$ARROW_C_GLIB_INSTALL') (/lib/) 
                  (command_sub
                    left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:105)
                    command_list: (command.CommandList children:[(C {(arch)})])
                  ) (-linux-gnu)
                }
              spids: [102]
            )
          ]
        )
      ]
    )
    (C {(export)} 
      {(Id.Lit_VarLike 'LD_LIBRARY_PATH=') ($ Id.VSub_DollarName '$LD_LIBRARY_PATH') 
        (Id.Lit_Other ':') ($ Id.VSub_DollarName '$arrow_c_glib_lib_dir')
      }
    )
    (C {(export)} 
      {(Id.Lit_VarLike 'GI_TYPELIB_PATH=') ($ Id.VSub_DollarName '$arrow_c_glib_lib_dir') 
        (/girepository-1.0)
      }
    )
    (C {(test/run-test.rb)})
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_SYSTEM')} 
                  {(Id.Lit_Equals '=')} {(DQ (meson))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:141)
            )
          ]
          action: [(command.ControlFlow token:(Token id:Id.ControlFlow_Exit val:exit span_id:146))]
          spids: [128 143]
        )
      ]
    )
    (C {(export)} 
      {(Id.Lit_VarLike 'PKG_CONFIG_PATH=') ($ Id.VSub_DollarName '$PKG_CONFIG_PATH') 
        (Id.Lit_Other ':') ($ Id.VSub_DollarName '$ARROW_CPP_INSTALL') (/lib/pkgconfig)
      }
    )
    (C {(export)} 
      {(Id.Lit_VarLike 'PKG_CONFIG_PATH=') ($ Id.VSub_DollarName '$PKG_CONFIG_PATH') 
        (Id.Lit_Other ':') ($ Id.VSub_DollarName '$arrow_c_glib_lib_dir') (/pkgconfig)
      }
    )
    (C {(pushd)} {(example/lua)})
    (command.If
      arms: [
        (if_arm
          cond: [
            (command.Sentence
              child: 
                (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$TRAVIS_OS_NAME')} 
                  {(Id.Lit_Equals '=')} {(DQ (osx))} {(Id.Lit_RBracket ']')}
                )
              terminator: (Token id:Id.Op_Semi val:';' span_id:185)
            )
          ]
          action: [
            (C {(lua)} {(write-batch.lua)})
            (C {(lua)} {(read-batch.lua)})
            (C {(lua)} {(write-stream.lua)})
            (C {(lua)} {(read-stream.lua)})
          ]
          spids: [172 187]
        )
      ]
      else_action: [
        (command.If
          arms: [
            (if_arm
              cond: [
                (command.Sentence
                  child: 
                    (C {(Id.Lit_LBracket '[')} {($ Id.VSub_DollarName '$BUILD_TORCH_EXAMPLE')} 
                      {(Id.Lit_Equals '=')} {(DQ (yes))} {(Id.Lit_RBracket ']')}
                    )
                  terminator: (Token id:Id.Op_Semi val:';' span_id:225)
                )
              ]
              action: [
                (C {(.)} 
                  {(word_part.TildeSub token:(Token id:Id.Lit_TildeLike val:'~' span_id:232)) 
                    (/torch/install/bin/torch-activate)
                  }
                )
                (C {(luajit)} {(write-batch.lua)})
                (C {(luajit)} {(read-batch.lua)})
                (C {(luajit)} {(write-stream.lua)})
                (C {(luajit)} {(read-stream.lua)})
                (C {(luajit)} {(stream-to-torch-tensor.lua)})
              ]
              spids: [212 227]
            )
          ]
          else_action: [
            (C {(lua)} {(write-batch.lua)})
            (C {(lua)} {(read-batch.lua)})
            (C {(lua)} {(write-stream.lua)})
            (C {(lua)} {(read-stream.lua)})
          ]
        )
      ]
    )
    (C {(popd)})
    (C {(pushd)} {(example/go)})
    (C {(make)} {(generate)})
    (C {(make)})
    (C {(./write-batch)})
    (C {(./read-batch)})
    (C {(./write-stream)})
    (C {(./read-stream)})
    (C {(popd)})
    (C {(popd)})
  ]
)