forked from contentful/contentful.swift
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (40 loc) · 2.68 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
language: objective-c
rvm:
- 2.4.1
cache: bundler
# Whitelist `master` branch as the only branch to build pushes for.
branches:
only:
- master
- /^\d+\.\d+\.\d+(-(beta|alpha|RC)\d*)?/ # Regex to trigger builds for git tags so that we can deploy docs to gh-pages.
matrix:
include:
# Xcode9
- osx_image: xcode9
env: SDK=iphonesimulator PLATFORM="iOS Simulator,name=iPhone 6s,OS=11.0" SCHEME=Contentful_iOS
- osx_image: xcode9
env: SDK=appletvsimulator PLATFORM="tvOS Simulator,name=Apple TV 1080p,OS=11.0" SCHEME=Contentful_tvOS
- osx_image: xcode9
env: SDK=macosx PLATFORM="OS X" SCHEME=Contentful_macOS
- osx_image: xcode9
env: SWIFT_BUILD=true
script:
- ./Scripts/travis-build-test.sh
after_success:
- ./Scripts/integration-test.sh
- bundle exec slather coverage -s --coveralls
- bundle exec pod lib lint Contentful.podspec
# Build the docs only for one of the jobs
- if [[ $TRAVIS_PULL_REQUEST == false && -n $TRAVIS_TAG && $SWIFT_BUILD == true ]]; then ./Scripts/reference-docs.sh; fi
# Deploy the docs to GH pages if we are pushing a tag
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_ACCESS_TOKEN
local_dir: docs
on:
condition: $TRAVIS_PULL_REQUEST == false && -n $TRAVIS_TAG && $SWIFT_BUILD == true
env:
global:
- secure: JLkG75LSPkXdxZ4DRmjdvcie+YbOx1mkf2b7Ddny4dFYivw1nAQtJYTsqgog/hYwzxxGYD+93DiXkm4ElvxwHLq19s4aCuQY3uu3PO/N8gTqcJpsGfcFFkyqhEjpKrJKuWtLLS78CjXnfeRvIT7wT0nySvqotRZ4pOGZnCiEqOkGXjUv/eI9d4YZu4VVu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