forked from tmspzz/Rome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
134 lines (117 loc) · 4.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
os: osx
language: objective-c
osx_image: xcode10.2
git:
depth: 1
# Use new container infrastructure to enable caching
#rvm: 2.5.0
jobs:
include:
- stage: "Build"
name: "Build Rome & Test Dymanic Frameworks"
before_install:
- rvm mount http://rubies.travis-ci.org/osx/10.14/x86_64/ruby-2.5.0.tar.bz2 --verify-downloads 2
# Update Homebrew
- brew update
# Run bundler and install the dependencies in vendor/bundle
# so that it can be cached.
- bundle install --deployment
install:
# Install stack
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- brew install stack
# Download and instal hlint
- rake hlint:install[2.1.16]
# Download and install minio
- travis_retry wget -O $HOME/.local/bin/minio https://dl.minio.io/server/minio/release/darwin-amd64/minio || echo "Minio already in cache"
- chmod +x $HOME/.local/bin/minio
# Install Carthage
- brew outdated carthage || brew upgrade carthage
# Install bats-core
- brew install bats-core
script:
- bundle exec danger
- stack $ARGS setup -j 2
- stack $ARGS test --no-terminal --haddock --no-haddock-deps
- stack $ARGS build -j 2
- stack $ARGS sdist
- stack $ARGS install
- travis_wait 60 bats integration-tests/dynamic-frameworks-ini.bats
- travis_wait 60 bats integration-tests/dynamic-frameworks-yml.bats
- travis_wait 60 bats integration-tests/dynamic-frameworks-engine-yml.bats
- stage: "Build"
name: "Build Rome & Test Current Frameworks"
before_install:
- rvm mount http://rubies.travis-ci.org/osx/10.14/x86_64/ruby-2.5.0.tar.bz2 --verify-downloads 2
# Update Homebrew
- brew update
# Run bundler and install the dependencies in vendor/bundle
# so that it can be cached.
- bundle install --deployment
install:
# Install stack
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- brew install stack
# Download and instal hlint
- rake hlint:install[2.1.16]
# Download and install minio
- travis_retry wget -O $HOME/.local/bin/minio https://dl.minio.io/server/minio/release/darwin-amd64/minio || echo "Minio already in cache"
- chmod +x $HOME/.local/bin/minio
# Install Carthage
- brew outdated carthage || brew upgrade carthage
# Install bats-core
- brew install bats-core
script:
- bundle exec danger
- stack $ARGS setup -j 2
- stack $ARGS test --no-terminal --haddock --no-haddock-deps
- stack $ARGS build -j 2
- stack $ARGS sdist
- stack $ARGS install
- travis_wait 60 bats integration-tests/current-framework-yml.bats
- travis_wait 60 bats integration-tests/current-framework-engine-yml.bats
- travis_wait 60 bats integration-tests/current-framework-named-yml.bats
- travis_wait 60 bats integration-tests/current-framework-named-engine-yml.bats
- stage: "Build"
name: "Build Rome & Test Static Frameworks"
before_install:
- rvm mount http://rubies.travis-ci.org/osx/10.14/x86_64/ruby-2.5.0.tar.bz2 --verify-downloads 2
# Update Homebrew
- brew update
# Run bundler and install the dependencies in vendor/bundle
# so that it can be cached.
- bundle install --deployment
install:
# Install stack
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- brew install stack
# Download and instal hlint
- rake hlint:install[2.1.16]
# Download and install minio
- test ! -e $HOME/.local/bin/minio && travis_retry wget -O $HOME/.local/bin/minio https://dl.minio.io/server/minio/release/darwin-amd64/minio || echo "Minio already in cache"
- chmod +x $HOME/.local/bin/minio
# Install Carthage
- brew outdated carthage || brew upgrade carthage
# Install bats-core
- brew install bats-core
script:
- bundle exec danger
- stack $ARGS setup -j 2
- stack $ARGS test --no-terminal --haddock --no-haddock-deps
- stack $ARGS build -j 2
- stack $ARGS sdist
- stack $ARGS install
- travis_wait 60 bats integration-tests/static-frameworks-ini.bats
- travis_wait 60 bats integration-tests/static-frameworks-yml.bats
- travis_wait 60 bats integration-tests/static-frameworks-engine-yml.bats
env:
- ARGS="--resolver=lts-15.11"
cache:
directories:
- $HOME/.local/bin
- $HOME/.stack
- $TRAVIS_BUILD_DIR/.stack-work
- vendor/bundle