Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Commit

Permalink
[+] Add cache for travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
15cm committed Jun 19, 2017
1 parent 7cde0ff commit 9c8bfc7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
language: objective-c
osx_image: xcode8.3

branches:
except:
- /^dev-(.*)$/

cache:
directories:
- Carthage

before_install:
- brew update && (brew upgrade carthage || true)
install:
- carthage update --platform mac --no-use-binaries
- brew update
- brew outdated carthage || brew upgrade carthage
- carthage bootstrap --platform mac --no-use-binaries --cache-builds
script:
- xcodebuild clean build -project AMM.xcodeproj -target AMM
- xcodebuild test -project AMM.xcodeproj -scheme AMM

before_deploy:
# package release into dmg
- release_dir=build/Release
- release_name=AMM_${TRAVIS_TAG}
- dmg_path=${release_dir}/${release_name}/${release_name}.dmg
- mkdir ${release_dir}/${release_name} && mv ${release_dir}/AMM.app $_ && ln -s /Applications $_/
- hdiutil create ${dmg_path} -volname release_name -srcfolder ${release_dir}/${release_name}
- hdiutil create ${dmg_path} -volname ${release_name} -srcfolder ${release_dir}/${release_name}
deploy:
provider: releases
api_key:
Expand Down

0 comments on commit 9c8bfc7

Please sign in to comment.