-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
96 lines (87 loc) · 2.56 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
language: cpp
dist: trusty
sudo: required
matrix:
include:
- os: osx
osx_image: xcode10.1
- os: linux
env: COMPILER_C=gcc-7 COMPILER_CC=g++-7
compiler:
- gcc
addons:
apt:
update: true
sources:
- sourceline: 'ppa:mhier/libboost-latest'
- ubuntu-toolchain-r-test
packages:
- g++-7
- cmake
- boost1.67
- os: linux
env: COMPILER_C=clang-7 COMPILER_CC=clang++-7
compiler:
- clang
addons:
apt:
update: true
sources:
- sourceline: 'ppa:mhier/libboost-latest'
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-7
packages:
- clang-7
- cmake
- boost1.67
before_script:
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew update;
fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
sudo apt-get install;
sudo apt-get -qq update;
sudo apt-get -y install python3 libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxext-dev;
fi
install:
- ls;
rm -rf dependencies;
rm -rf build;
python --version;
pip install --user future;
ls
# - if [[ $TRAVIS_OS_NAME == "osx" ]]; then
# git clone https://github.com/KhronosGroup/MoltenVK.git;
# cd MoltenVK;
# travis_wait 60 ./fetchDependencies;
# travis_wait 60 xcodebuild -project MoltenVKPackaging.xcodeproj -scheme "MoltenVK Package (Release)" build;
# cd ..;
# export MOLTENVK_SDK_PATH=$TRAVIS_BUILD_DIR/MoltenVK;
# fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
wget -O vulkansdk.run https://sdk.lunarg.com/sdk/download/1.1.73.0/linux/vulkansdk-linux-x86_64-1.1.73.0.run;
chmod ugo+x vulkansdk.run;
./vulkansdk.run;
export VK_SDK_PATH=$TRAVIS_BUILD_DIR/VulkanSDK/1.1.73.0/x86_64;
export VULKAN_SDK=$TRAVIS_BUILD_DIR/VulkanSDK/1.1.73.0/x86_64;
fi
script:
- cmake --version
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
sed -i '' "s,git@github.com:,https://github.com/,g" CMakeLists.txt;
cmake -G Xcode -H. -Bbuild -DBUILD_FOLDER_SUFFIX:STRING=build -DVIEWER_DOWNLOAD_AND_USE_VULKAN_SDK:BOOL=TRUE;
xcodebuild -project build/ViewerSdl.xcodeproj -configuration Release;
fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then
export CC=${COMPILER_C};
export CXX=${COMPILER_CC};
sed -i 's,git@github.com:,https://github.com/,g' CMakeLists.txt;
cmake -H. -Bbuild -DBUILD_FOLDER_SUFFIX:STRING=build;
make -C build;
fi
notifications:
email:
recipients:
- vlad.serhiienko@gmail.com
on_success: change
on_failure: always