forked from qgis/homebrew-qgisdev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.3 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
language: ruby
os: osx
env: OSX=10.12
osx_image: xcode8.1
rvm: system
sudo: required
before_install:
- export TRAVIS_COMMIT="$(git rev-parse --verify -q HEAD)"
- export CHANGED_FORMULAE="$(git diff --name-status $TRAVIS_COMMIT^ $TRAVIS_COMMIT | sed -n -E 's#^(A|M)[[:space:]]+Formula/(.+)\.rb$#\2#p' )"
- if [ "${CHANGED_FORMULAE}" == "" ]; then
echo "Skipping CI; no changed formulae found in $TRAVIS_BUILD_DIR";
travis_terminate 0;
else
echo "Changed formulae are ${CHANGED_FORMULAE}";
fi
- export HOMEBREW_REPOSITORY="$(brew --repo)"
- sudo chown -R "$USER" "$HOMEBREW_REPOSITORY"
- git -C "$HOMEBREW_REPOSITORY" reset --hard origin/master
- mkdir -p "$HOMEBREW_REPOSITORY/Library/Taps/qgis"
- ln -s "$TRAVIS_BUILD_DIR" "$HOMEBREW_REPOSITORY/Library/Taps/qgis/homebrew-qgisdev"
- cd "$HOMEBREW_REPOSITORY/Library/Taps/qgis/homebrew-qgisdev"
- chmod -f 0644 $HOMEBREW_REPOSITORY/Library/Taps/qgis/homebrew-qgisdev/Formula/*.rb
- export TRAVIS_BUILD_DIR="$HOMEBREW_REPOSITORY/Library/Taps/qgis/homebrew-qgisdev"
- export HOMEBREW_DEVELOPER="1"
- export HOMEBREW_PREFIX=$(brew --prefix)
- ulimit -n 1024
- ./travis/before_install.sh
install: ./travis/install.sh
#before_script: ./travis/before_script.sh
script: ./travis/script.sh
#after_script: ./travis/after_script.sh