-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
70 lines (68 loc) · 1.95 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
language: objective-c
cache:
directories:
- $HOME/.macports-ci-ccache
matrix:
include:
# test all images installing in default location
- osx_image: xcode7.3
- osx_image: xcode8.3
- osx_image: xcode9.4
- osx_image: xcode10.3
- osx_image: xcode11.6
- osx_image: xcode12
- osx_image: xcode12.3
- osx_image: xcode12.5
# test all images installing in $HOME/opt
- osx_image: xcode7.3
env: PRE=$HOME/opt
- osx_image: xcode8.3
env: PRE=$HOME/opt
- osx_image: xcode9.4
env: PRE=$HOME/opt
- osx_image: xcode10.3
env: PRE=$HOME/opt
- osx_image: xcode11.6
env: PRE=$HOME/opt
- osx_image: xcode12
# env: PRE=$HOME/opt
- osx_image: xcode12.3
env: PRE=$HOME/opt
- osx_image: xcode12.5
env: PRE=$HOME/opt
# test latest image with a different sync mode
- osx_image: xcode9.4
env: OPT=--sync=rsync
- osx_image: xcode9.4
env: PRE=$HOME/opt OPT=--sync=rsync
# test latest image remove homebrew
- osx_image: xcode9.4
env: OPT=--remove-brew
- osx_image: xcode9.4
env: PRE=$HOME/opt OPT=--remove-brew
# test executing in the original manner
- osx_image: xcode9.4
env: MACPORTS_CI_EXEC=yes
- osx_image: xcode9.4
env: PRE=$HOME/opt MACPORTS_CI_EXEC=yes
script:
# this is required for curl to work correctly:
- if test -z "$PRE" ; then PRE=/opt/local ; fi
- if test "$MACPORTS_CI_EXEC" = yes ; then
chmod +x ./macports-ci ;
./macports-ci install --prefix="$PRE" $OPT ;
export COLUMNS=80 ;
PATH="$PRE/bin:$PATH" ;
else
source macports-ci install --prefix="$PRE" $OPT ;
fi
- port installed
- if test "$PRE" = /opt/local ; then source macports-ci ccache ; fi
# install a small port for test:
- sudo port -N install xdrfile
- sudo port -N uninstall xdrfile
- source macports-ci localports test_portfiles
# install a small local port for test:
- sudo port -N install xdrfile1
# save ccache
- if test "$PRE" = /opt/local ; then source macports-ci ccache --save ; fi