forked from isen-ng/homebrew-dotnet-sdk-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1.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
language: c
os: osx
osx_image:
- xcode10.1
- xcode10.3
branches:
only:
- master
cache:
directories:
- /usr/local/Homebrew/Library/Homebrew/vendor/bundle
- /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby
install:
- |
# Force strict error checking.
set -o errexit
set -o pipefail
- |
# Switch to master branch.
export HOMEBREW_COLOR=1
export HOMEBREW_DEVELOPER=1
export HOMEBREW_NO_AUTO_UPDATE=1
brew update-reset
HOMEBREW_INSTALL_BUNDLER_GEMS_FIRST=1 brew config
- |
# Mirror the repo as a tap.
TAP_DIR="$(brew --repository "${TRAVIS_REPO_SLUG}")"
mkdir -p "${TAP_DIR}"
rsync -az --delete "${TRAVIS_BUILD_DIR}/" "${TAP_DIR}/"
export TRAVIS_BUILD_DIR="${TAP_DIR}"
builtin cd "${TAP_DIR}"
script: ./travis-ci.sh
# The reason why we do not simply run `brew cask ci` is because the task
# will complain and fail if we do not remove all installed sub-packages during `uninstall`.
# However, we should not remove the sub-packages because they are the shared runtime between
# different versions and the other parallelly installed versions will fail to run if we
# remove them.
# script: brew cask ci