-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
48 lines (42 loc) · 987 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
48
language: cpp
matrix:
include:
- os: linux
addons:
apt:
packages:
- cmake
- libcurl4-openssl-dev
- os: osx
osx_image: xcode12.5
- os: freebsd
addons:
pkg:
- cmake
- curl
env:
- os: windows
before_install:
- echo $LANG
- echo $LC_ALL
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; brew unlink cmake; brew install cmake curl; fi
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then choco install -y make curl ; fi
before_script:
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then
mkdir lib;
cd lib;
wget --no-check-certificate "https://curl.se/download/curl-7.78.0.zip";
7z x curl-7.78.0.zip;
cd curl-7.78.0;
cmake .;
cmake --build .;
fi
script:
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then
cd ../..;
cmake -S . -B build;
cmake --build build;
else
cmake .;
make -j 4;
fi