forked from codereport/jsource
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (43 loc) · 973 Bytes
/
.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
stages:
- build
jobs:
include:
# Linux
- stage: build
language: cpp
compiler:
- clang
- gcc
os:
- linux
before_install:
- sudo apt-get -y install ninja-build
- pip install cmake
script:
- cmake --version; cmake --log-level=VERBOSE -G "Ninja Multi-Config" -B build; ninja -j12 -C build
branches:
only:
- main
# macOS
- stage: build
language: cpp
compiler:
- clang
- gcc
# addons:
# homebrew:
# packages:
# - ninja
os:
- osx
osx_image:
- xcode12
before_install:
#- brew update
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja
#- brew install cmake
script:
- cmake --version; cmake --log-level=VERBOSE -G "Ninja Multi-Config" -B build; ninja -j12 -C build
branches:
only:
- main