-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
105 lines (99 loc) · 2.49 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
os: linux
language: cpp
# safelist
branches:
only:
- master
- stable
- develop
stage:
- build
- build Release
- tests
- deploy
jobs:
include:
- stage: build
name: "Linux Build Debug"
os: linux
install:
- bash .travis/installLinux.sh
- bash .travis/prepareCmake.sh
script:
- cd build && make -j
- stage: build
name: "MacOS Build Debug"
os: osx
install:
- bash .travis/prepareCmake.sh
script:
- cd build && make -j
- stage: build
name: "Windows MVS 2017 Build Debug"
os: windows
install:
- mkdir build && cd build
- cmake -G "Visual Studio 15 2017" ..
script:
- cmake --build .
- stage: build
name: "Windows MinGW Build Debug"
os: windows
addons:
apt:
packages:
- mingw-w64
- mingw-w64-tools
- mingw-w64-x86-64-dev
- mingw-w64-x86-64-gcc
- mingw-w64-x86-64-gcc-libgfortran
- mingw-w64-x86-64-gcc-fortran
- mingw-w64-x86-64-headers
- cmake
install:
- mkdir build && cd build
- cmake -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" ..
script:
- cmake --build .
- stage: build Release
name: "Linux Build Release"
os: linux
install:
- bash .travis/installLinux.sh
- bash .travis/prepareCmakeRelease.sh
script:
- cd build && make -j
- stage: build Release
name: "MacOS Build Release"
os: osx
install:
- bash .travis/prepareCmakeRelease.sh
script:
- cd build && make -j
- stage: build Release
name: "Windows MVS 2017 Build Release"
os: windows
install:
- mkdir build && cd build
- cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=Release ..
script:
- cmake --build .
- stage: build Release
name: "Windows MinGW Build Release"
os: windows
addons:
apt:
packages:
- mingw-w64
- mingw-w64-tools
- mingw-w64-x86-64-dev
- mingw-w64-x86-64-gcc
- mingw-w64-x86-64-gcc-libgfortran
- mingw-w64-x86-64-gcc-fortran
- mingw-w64-x86-64-headers
- cmake
install:
- mkdir build && cd build
- cmake -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DCMAKE_BUILD_TYPE=Release ..
script:
- cmake --build .