-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
40 lines (38 loc) · 1.05 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
language: ruby
os: osx
osx_image: xcode12.2
env:
global:
- FRAMEWORK_NAME=Euler
install:
- swift package resolve # Resolving package
- swift package update # Updates
jobs:
include:
- stage: Build
name: "Jazzy"
script:
# Install Jazzy and dependencies
- gem install jazzy
- jazzy --clean --no-objc
- cp Euler.svg ./docs/Euler.svg
- cp Euclid.png ./docs/Euclid.png
- cd docs && echo "euler.arguiot.com" > CNAME # Keeps the URL
deploy:
- provider: pages
cleanup: false
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
local-dir: docs
on:
branch: master
- script: swift test --parallel
name: "Tests"
- stage: Deploy
name: "CocoaPods"
script: pod trunk push Euler.podspec --allow-warnings --verbose
if: commit_message =~ /v[0-9]/
notifications:
email:
on_success: never # default: change
on_failure: always # default: always