Commit 05762571 authored by Carola Nitz's avatar Carola Nitz

CirlceCi: Add continous integration

This adds an initial ci lane to fastlane for use on PRs.
this runs a build for VLC-iOS with 10.3.1 and VLC-tvOS on 10.2
parent 560a4a2c
version: 2
jobs:
build:
macos:
xcode: "9.2.0"
environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
shell: /bin/bash --login -eo pipefail
steps:
- checkout
- run: echo "2.3.5" > .ruby-version
- restore_cache:
key: v1-gems-{{ checksum "Gemfile.lock" }}
- run: bundle check || bundle install --path .bundle
- save_cache:
key: v1-gems-{{ checksum "Gemfile.lock" }}
paths:
- .bundle
- restore_cache:
key: v1-pods-{{ checksum "Podfile.lock" }}
- run:
name: Install CocoaPods
command: |
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
pod install
- save_cache:
key: v1-pods-{{ checksum "Podfile.lock" }}
paths:
- Pods
- run: bundle exec fastlane ci
- store_artifacts:
path: /Users/distiller/Library/Logs/gym
......@@ -2,3 +2,5 @@ source "https://rubygems.org"
gem 'fastlane', '2.82.0'
gem 'cocoapods', '1.4.0'
gem 'xcode-install', '2.3.1'
gem 'xcodeproj', '1.5.6'
......@@ -33,6 +33,29 @@ lane :release do |options|
push_to_git_remote
end
lane :ci do
xcversion(version: "9.2.0")
xcode_select "/Applications/Xcode.app"
#Ideally we have iOS 9 support here but this is not yet added
#https://discuss.circleci.com/t/please-add-simulators-for-ios-9-10-to-xcode-9-image/16530
xcodebuild(
workspace: "VLC.xcworkspace",
scheme: "VLC-iOS",
configuration: "Debug",
clean: true,
build: true,
destination: "platform=iOS Simulator,name=iPhone 6s,OS=10.3.1"
)
xcodebuild(
workspace: "VLC.xcworkspace",
scheme: "VLC-tvOS",
configuration: "Debug",
clean: true,
build: true,
destination: "platform=tvOS Simulator,name=Apple TV 1080p,OS=10.2"
)
end
#### Private ####
desc 'Bump and commit app version and build number'
......
......@@ -46,6 +46,11 @@ This action does the following:
- Update the changelog from the NEWS file
- Push the version bump
### ci
```
fastlane ci
```
----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment