Skip to content

Commit

Permalink
Fix CI build issues (#7)
Browse files Browse the repository at this point in the history
* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* added codecov

* Update .travis.yml
  • Loading branch information
BenziAhamed authored Jan 1, 2019
1 parent 896f154 commit 045e6d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
language: objective-c
osx_image: xcode8
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=Tracery.xcworkspace
- IOS_SCHEME="Tracery iOS"
- MACOS_SCHEME="Tracery macOS"
- IOS_SDK=iphonesimulator
- MACOS_SDK=macosx
matrix:
- DESTINATION="arch=x86_64" SCHEME=$MACOS_SCHEME SDK="$MACOS_SDK"
# - DESTINATION="platform=iOS Simulator,name=iPhone SE,OS=10.0" SCHEME=$IOS_SCHEME SDK="$IOS_SDK"
language: swift
osx_image: xcode10.1

# https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
# install: travis_wait mvn install
script:
- set -o pipefail
- xcodebuild -version
- xcodebuild -showsdks
# build the scheme + run tests
# debug
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test -verbose | xcpretty
- xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Release ONLY_ACTIVE_ARCH=NO -verbose | xcpretty
- xcodebuild -workspace Tracery.xcworkspace -scheme "Tracery iOS" build
- # xcodebuild -project "Tracery/Tracery.xcodeproj" -scheme "Tracery iOS" -destination "platform=iOS Simulator,name=iPhone X" test

after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
codecov:
token: 5185aad9-8124-4544-bd75-e64d316ffef0

0 comments on commit 045e6d7

Please sign in to comment.