-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.travis.yml
124 lines (111 loc) · 2.59 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#
# Author
#
sudo: false
git:
submodules: true
depth: 5
notifications:
email:
language: cpp
compiler: clang # expect 5.0+
addons:
chocolatey:
packages:
- llvm
- ninja
homebrew:
packages:
- ninja
- tree
- cmake
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-xenial-6.0
- llvm-toolchain-xenial-7
packages:
- gcc-7
- g++-7
# - clang-6.0
# - llvm-6.0-tools
- libc++-dev
- libc++abi-dev
- unzip
- ninja-build
- tree
- cmake
install:
- echo ${TRAVIS_OS_NAME};
- if [ ${TRAVIS_OS_NAME} == "linux" ]; then
sudo bash ./scripts/install-cmake-3.14.sh;
sudo bash ./scripts/install-libc++.sh;
sudo rm -rf prebuilt libcxx* llvm*;
sudo rm -rf cmake-3.14*;
fi
- if [ ${TRAVIS_OS_NAME} == "osx" ]; then
brew info llvm;
fi
# - if [ ${TRAVIS_OS_NAME} == "windows" ]; then
# choco info llvm;
# fi
script:
- mkdir -p build && pushd build;
- cmake ../
-G "Ninja"
-DBUILD_SHARED_LIBS=${SHARED}
-DCMAKE_BUILD_TYPE=${CONFIG}
-DCMAKE_INSTALL_PREFIX=../install
-DCMAKE_CXX_COMPILER=${CXX}
- ninja install
# # windows: move dll
# - if [ ${TRAVIS_OS_NAME} == "windows" ]; then
# cp ./modules/coroutine.dll ./test;
# fi
- ./test/coroutine_test
- popd;
after_success:
- cd ${TRAVIS_BUILD_DIR}
- tree ./install
matrix:
allow_failures:
- os: windows
include:
- name: Mac Debug Shared
os: osx
osx_image: xcode10.1
env:
- CONFIG=Debug SHARED=true
- name: Mac Release Shared
os: osx
osx_image: xcode10.1
env:
- CONFIG=Release SHARED=true
- name: Ubuntu(Xenial) Debug Shared
os: linux
dist: xenial
env:
- CONFIG=Debug SHARED=true
- name: Ubuntu(Xenial) Release Shared
os: linux
dist: xenial
env:
- CONFIG=Release SHARED=true
- name: iPhone OS
os: osx
osx_image: xcode10.1
compiler: clang
script:
- mkdir -p build && pushd build;
- cmake ../
-DBUILD_SHARED_LIBS=$SHARED
-DCMAKE_BUILD_TYPE=$CONFIG
-DCMAKE_INSTALL_PREFIX=../install
-DCMAKE_TOOLCHAIN_FILE=../external/ios-cmake/ios.toolchain.cmake
-DENABLE_BITCODE=false
-DIOS_DEPLOYMENT_TARGET=10.13
- make install
after_success:
- tree ./install