-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (65 loc) · 2.17 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: ruby
rvm:
- 2.6.5
cache:
directories:
- $HOME/.stack/
- .stack-work
- $HOME/.rvm/
timeout: 1000
jobs:
include:
#osx_image: xcode9.2 # macOS 10.12 sierra
- stage: "Build and test"
os: osx
osx_image: xcode10 # macOS 10.13 high_sierra
install:
- ./automation/install-stack.sh
script:
- stack --no-terminal test
- os: osx
osx_image: xcode11.3 # macOS 10.14 Mojave
install:
- ./automation/install-stack.sh
script:
- stack --no-terminal test
- stage: "Bottle and upload"
os: osx
osx_image: xcode10 # macOS 10.13 high_sierra
install:
- ./automation/install-homebrew-automation.sh
script:
- homebrew_automation.rb help
- homebrew_automation.rb version
deploy:
provider: script
script: ./automation/bottle-and-upload.sh
on:
tags: true
- os: osx
osx_image: xcode11.3 # macOS 10.14 Mojave
install:
- ./automation/install-homebrew-automation.sh
script:
- homebrew_automation.rb help
- homebrew_automation.rb version
deploy:
provider: script
script: ./automation/bottle-and-upload.sh
on:
tags: true
- stage: "Hand over to Github Actions"
os: linux
install:
- echo "We don't have new macOS 10.15 machines here at Travis, so we'll need Github for that."
- ./automation/install-homebrew-automation.sh
script:
- echo "However, it doesn't harm for us to publish the two Bottles we've built."
- echo "Github Actions is able to append their 10.15 bottle without wiping our Bottles."
deploy:
provider: script
script:
- ./automation/gather-and-publish.sh
- ./automation/trigger-github-dispatch.sh trigger_ci_run
on:
tags: true