Skip to content

Commit

Permalink
set up travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hmyy committed Nov 10, 2017
1 parent b2d919f commit ccd6cb1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 40 deletions.
26 changes: 12 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
language: objective-c
osx_image: xcode9
cache:
directories:
- Carthage
osx_image: xcode9.1
rvm:
- 2.4.2
install:
- bin/bootstrap-if-needed
- gem install scan
- gem install xcpretty
script:
- scan --scheme Resolver-macOS
- scan --scheme Resolver-iOS
- xcodebuild -project Resolver.xcodeproj -scheme "Resolver-iOS" | xcpretty
- xcodebuild -project Resolver.xcodeproj -scheme "Resolver-macOS" | xcpretty
after_success:
- bash <(curl -s https://codecov.io/bash)
- "./docs/build_docs.sh"
before_deploy:
- carthage build --no-skip-current
- carthage archive Resolver
- carthage build --no-skip-current
- carthage archive Resolver
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: C5qDpqAPLHc3W5MWaqkSG/LKk9r0cJ9Etn15dnBwwQoByGiMu2HcJB+GJry6143qU8xEddoahuYf7KUzl/NsR9E2nKv4ZDBWSQh6yvJVzf0q2PTikEn8OHqqvcUa9V9p+xnqnIa5A3HB7xcD7ACSnNO2zC2uNP+7+HBVJbZymLdBBpelwJFKidTXHC+4PlW3vxpJ6jbjXXqNbTF9bJnuKW/+Hj7MSGJs6QbxerDlsVtN5aGNu7CHziPe8RKG500vcpNqnwJYCJBn+FESjJIwr+J9zj+ANjZTgJ7oRekDg/Ghgu+T9NU8PTxzPuYJahprQDOJaXWEOv2A9fCN+2p1zW1ZifD3C0pQsqvCtgnbrNcfMXYLhLNih2pMRsYxIgnJD4MiheLJTRhh2ZmE4rMwGvzntsj7q3+UzjN2HRLpv7j1+QlgsXUp720P5C5gyq6k3fG4O2ReFzV6Wa67/MbKCcZdSLHvXuOqKzgDOfPLAbzMEVBFGdO7FkH943tnKP7uGt1aSD93tKpbQA0bLlUGYeCgw/LfVOC4VL0ecx+NCUmtxVh8VbCW+UGtSAssja6FkqbsECCHa7lqiKGjFk3J/GKjxdbQx13wlVHgg0lPe+SAwJqB1JeZtqrWn6+YIA7InXbnG1bAquQ85BdGBUynD1H+jCBCIZ8tGo4lrLu0piE=
secure: KCYuFcrjWYRv0Mu6oOcF6VVsiMIWyQrKiCRT3FF+lHv8zLd/iz7NIAallUyWtsrK3tHX0jfVJeCau5IHI6sk9/8+PtSmg62PzCZw+8fHnGKXM135VVQa+dSAKU+/ZIyApZuqkSM8bsisrDzIHYylHgP4nI1t9iOdy4WCaXTEEYdBXpJTb6igqaqI2Sr4bsF+IOy5H+U8Xxn6YjU9Ml19M2zgOLQQjxdnW8JLlLG6RCu8Oo9E32KCwsktupzDioC8rhvNpxPSA29Qrj5E2ITxxk4ZZCgWc8Ggaqsuo3d9TEXqhbJRH9aK/uxPaoRldWF0cTn4tWpSmyyOQ0GVb7okgswCm8KFibEOKk0kwoPekngBAlSPAhRQOc03PgrRM+VzCuesX1/Y2tix1Kul4dAFy6pHWrs+/jZXMLih/SugedZINwnn9y8s/DyDGlrAgFAagIoaurUn0SRQkzm6HvWi0I2Tjie3CCHx1sBm3E3eEzSIF1IlYZH29gKnaKeuF3AoP1toiawsUIjXqK/TRT3Wbup+zlrGgysjUwVpDqF7HpEhXkvh6Dz3RF4Z4KQomdHjvdGTbekoCdJDpuOnrLIgt2z0ChhuVJP54I681TQg2LlWbocCvSP/kJN6QFDp+tlw33ueRdnAqx89Z/Rj3c1ifgCEFxAoaHWQYMBwd0UbGkk=
file: Resolver.framework.zip
on:
repo: zhuhaow/Resolver
tags: true
repo: Hmyy/Resolver
tag: true
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Resolver
=========
[![Build Status](https://travis-ci.org/Hmyy/Resolver.svg?branch=master)](https://travis-ci.org/Hmyy/Resolver) [![GitHub release](https://img.shields.io/github/release/Hmyy/Resolver.svg?maxAge=3600)](https://github.com/Hmyy/Resolver/releases) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![GitHub license](https://img.shields.io/badge/license-BSD_3--Clause-blue.svg)](https://raw.githubusercontent.com/Hmyy/Resolver/master/LICENSE)

Asynchronous DNS resolver for macOS and iOS.
2 changes: 2 additions & 0 deletions Resolver.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
36342A161DD0CE4C0062EF75 /* Nimble.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Nimble.framework; path = Carthage/Build/iOS/Nimble.framework; sourceTree = "<group>"; };
36342A201DD0D0740062EF75 /* bootstrap */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = bootstrap; sourceTree = "<group>"; };
36342A211DD0D0740062EF75 /* bootstrap-if-needed */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "bootstrap-if-needed"; sourceTree = "<group>"; };
EA7232DB1FB580A100F12E8A /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -134,6 +135,7 @@
363429C31DCE017A0062EF75 = {
isa = PBXGroup;
children = (
EA7232DB1FB580A100F12E8A /* README.md */,
363429EB1DCF79B00062EF75 /* Cartfile.private */,
36342A1F1DD0D0740062EF75 /* bin */,
363429CF1DCE017A0062EF75 /* Resolver */,
Expand Down
6 changes: 3 additions & 3 deletions bin/release_framework
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/bin/env sh

carthage build --no-skip-current
carthage archive Resolver
carthage archive

export GOPATH=$HOME/golang
export PATH=$PATH:$GOPATH/bin
go get github.com/aktau/github-release
github-release release \
--user zhuhaow \
--user repo: Hmyy \
--repo Resolver \
--tag $CIRCLE_TAG \
--name $CIRCLE_TAG \
--description $CIRCLE_TAG

github-release upload \
--user zhuhaow \
--user repo: Hmyy \
--repo Resolver \
--tag $CIRCLE_TAG \
--name Resolver.framework.zip \
Expand Down
23 changes: 0 additions & 23 deletions circle.yml

This file was deleted.

0 comments on commit ccd6cb1

Please sign in to comment.