forked from mapbox/mason
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (38 loc) · 1.04 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
language: generic
dist: precise
matrix:
include:
- os: osx
osx_image: xcode8
- os: osx
osx_image: xcode8
env: SYMLINK_INSTALL=true
- os: linux
sudo: false
- os: linux
sudo: false
env: SYMLINK_INSTALL=true
install:
- |
if [[ ${MASON_PLATFORM:-unset} == 'unset' ]] || [[ ${MASON_PLATFORM} == 'osx' ]] || [[ ${MASON_PLATFORM} == 'linux' ]]; then
# If platform is Linux or OSX, we might still be cross compiling if the
# MASON_PLATFORM_VERSION is not the same as the host platform.
if [[ ${MASON_PLATFORM_VERSION} == `uname -m` ]] || [[ -z ${MASON_PLATFORM_VERSION} ]]; then
echo "Installing clang for OSX/Linux via 'install' target"
source utils/toolchain.sh
which ${CC}
${CC} -v
which ${CXX}
${CXX} -v
fi
fi
script:
- |
if [[ ${SYMLINK_INSTALL:-} == true ]]; then
mkdir -p custom/path
ln -s $(pwd)/mason $(pwd)/custom/path/mason
export PATH=$(pwd)/custom/path:${PATH}
MASON_CUSTOM_PATH=true ./test/all.sh
else
./test/all.sh;
fi