Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Add Continuous Integration (#56)
Browse files Browse the repository at this point in the history
* Add .travis.yml configuration

* Share TUM Campus App scheme so Travis can find it

* Use fastlane on travis instead of travis default xctool or apples xcodebuild

* Manually install fastlane on travis

* Make travis cache the pods

* Try to fix travis fastlane build

* Revert "Make travis cache the pods"

This reverts commit 688f0a2.

* verbose fastlane in order to get clues on the error

* try to fix xcodebuild simulator timeout

* try to fix xcodebuild simulator timeout

* try to fix xcodebuild simulator timeout

* try to fix xcodebuild simulator timeout

* try to fix xcodebuild simulator timeout

* try to fix xcodebuild simulator timeout

* try to fix xcodebuild simulator timeout

* try to fix xcodebuild simulator timeout

* language should be not needed

* Revert "language should be not needed"

This reverts commit 4982864.

* Check whether Travis fails when a UITest fails

* Check whether Travis succeeds when UITest suceeds

* Try fix for Travis simulator startup timeout

* Disable UI Tests, add UnitTests

* Add Simple UnitTest, Swiftlint, Codecoverage and sonar

* Trying Travis env variable encryption

* Pass all tokens as command arguments

* try to get ToDo for sonar

* Run different tasks depending on whether it’s an integration in master or a pull request

* Run push builds on travis only when merging into master

* Fix fastfile error

* Fix Travis performing wrong task

* Add something for sonar to complain

* Update coverage on integration task

* Update Fastlane version

* Add UITests

* Update fastlane gem install

* Test UITests

* Test UITests

* Explicitly start simulator

* Fix UnitTest bundle identifier

* Try to fix Travis bug
Travis has multiple simulator devices for iOS 10.2 (s. Issue #7031 in travis-ci)

* Try to fix Travis bug
Travis has multiple simulator devices for iOS 10.2

* Trigger build

* Trigger build

* Trigger build

* Update fastlane, introduce new unittest-target, fix pod linking, add movie unit test

* [ci skip] uuh, that code smells

* [ci skip] uuh, that code smells

* [ci skip] uuh, that code smells

* Fix Code Coverage, exclude Pods in the linter, only run ensure_git_status_clean on CI,

* Increase Timeout

* Some cleanups

* Update Sonar properties to match the official project

* Remove old references

* Fix Pods not built

* logging for env variable

* Don’t use Sonar and the GitHub Bot when the PR is coming from a fork

* Added missing file
  • Loading branch information
mammuth authored Mar 6, 2017
1 parent a1f2ca8 commit cf1e694
Show file tree
Hide file tree
Showing 15 changed files with 694 additions and 20 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ Carthage/Build
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/reports/
fastlane/screenshots
.sonar

# Code Injection
#
Expand Down
33 changes: 33 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Fastlane runs swiftlint from one directory above where the Fastfile lives
# so make sure all the paths are relative in that regard.

# Find all the available rules by running:
# swiftlint rules

disabled_rules:
trailing_whitespace

opt_in_rules:

included:
- ./
# paths to ignore during linting. Takes precedence over `included`.
excluded:
- Pods

# configurable rules can be customized from this configuration file
# binary rules can set their severity level
line_length:
warning: 250
error: 400

type_body_length:
warning: 300
error: 400

file_length:
warning: 1000
error: 1500

# reporter type (xcode, json, csv, checkstyle)
reporter: "json"
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: objective-c # [sic]. Travis uses objective-c just to determine it needs to use the xcode cli
osx_image: xcode8.2

# cache:
# directories:
# - $HOME/.sonar

This comment has been minimized.

Copy link
@kordianbruck

kordianbruck May 16, 2017

Member

Any specific reason why caching is disabled?
We could also cache the pods files...

This comment has been minimized.

Copy link
@mammuth

mammuth via email May 17, 2017

Author Member

This comment has been minimized.

Copy link
@kordianbruck

kordianbruck May 17, 2017

Member

Yea, I'll create an issue for that - just so we don't forget


branches:
# Only run push builds for the master branch. PR builds are run nevertheless
only:
- master

before_install:
- echo $TRAVIS_SECURE_ENV_VARS
- ./fastlane/before_install.sh

script:
- fastlane snapshot reset_simulators --force # Workaround for Travis bug https://github.com/travis-ci/travis-ci/issues/7031
- ./fastlane/run.sh # Decide which lane to run

notifications:
email: false
3 changes: 0 additions & 3 deletions Campus App.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cf1e694

Please sign in to comment.