language: objective-c

before_install:
    - gem install cocoapods --no-rdoc --no-ri --no-document --quiet
    - brew update
    - brew uninstall xctool && brew install xctool
install:
    - pushd objc/VotingInformationProject && pod install
    - cp VotingInformationProject/CivicAPIKey.plist.template VotingInformationProject/CivicAPIKey.plist
    - cp VotingInformationProject/settings.plist.template VotingInformationProject/settings.plist

script:
    - xctool -workspace VotingInformationProject.xcworkspace -scheme VotingInformationProject -configuration Debug -sdk iphonesimulator -arch i386 test
    - popd
    - ./scripts/ci/check_copyright.sh

language: objective-c

before_install:
    # Cocoapods expects UTF-8 terminal and throws warning
    - export LANG=en_US.UTF-8
    - gem install cocoapods --no-rdoc --no-ri --no-document --quiet
    - brew update
    # Faster than uninstall + install
    - brew upgrade xctool 
install:
    - pushd objc/VotingInformationProject && pod install
    - cp VotingInformationProject/CivicAPIKey.plist.template VotingInformationProject/CivicAPIKey.plist
    - cp VotingInformationProject/settings.plist.template VotingInformationProject/settings.plist

script:
    - xctool -workspace VotingInformationProject.xcworkspace -scheme VotingInformationProject -configuration Debug -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO clean build test 
    - popd
    - ./scripts/ci/check_copyright.sh

Update xctool args to clean+build+test
Update xctool args to clean+build+test

Something in build #184 broke the travis CI with 'simulator
failed to start errors. Likely the Localizable.strings update.
Updating the xctool flags and forcing a clean/build/test cycle
seemed to fix the issue.
