language: objective-c
osx_image: xcode7.2
xcode_project: HHKL.xcodeproj
xcode_scheme: HHKL
xcode_sdk: iphonesimulator9.2
script:
       - carthage bootstrap --platform iOS --no-use-binaries
       - xctool -project HHKL.xcodeproj -scheme HHKL -sdk iphonesimulator9.2 -destination 'platform=iOS Simulator,name=iPhone 6s' ONLY_ACTIVE_ARCH=NO clean build

language: objective-c
osx_image: xcode7.2
xcode_project: HHKL.xcodeproj
xcode_scheme: HHKL
xcode_sdk: iphonesimulator9.2
before_script:
    - carthage bootstrap --platform iOS --no-use-binaries
script:
    - xctool -project HHKL.xcodeproj -scheme HHKL -sdk iphonesimulator9.2 -destination 'platform=iOS Simulator,name=iPhone 6s' ONLY_ACTIVE_ARCH=NO clean build

Move carthage command to before_script section
Move carthage command to before_script section
