-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
74 lines (73 loc) · 2.89 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
language: rust
matrix:
include:
- name: Windows Server + MSVC
os: windows
install:
- choco install strawberryperl
- choco install cmake
- choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
- choco install llvm --version 11.1.0
- git clone https://github.com/microsoft/vcpkg
- ./vcpkg/bootstrap-vcpkg.bat
- ./vcpkg/vcpkg install gtest:x64-windows
script:
- export PATH=$MSBUILD_PATH:$PATH
- export VCPKG=$(pwd)/vcpkg/scripts/buildsystems/vcpkg.cmake
- cargo build --release --workspace
- cargo test --release --workspace
- ./target/release/laplace-eq-therm-server.exe
- ./target/release/laplace-eq-therm-client.exe
- cd ./server/core
- mkdir -p build
- cd build
- cmake .. -DENABLE_LAPLACE_EQ_THERM_SERVER_CORE_TEST:BOOL=ON -DCMAKE_TOOLCHAIN_FILE:PATH=$VCPKG -DCMAKE_BUILD_TYPE=Release
- cmake --build . --config Release
- ctest -C Release
- name: Ubuntu 18.04 LTS + GCC
os: linux
dist: bionic
sudo: required
install:
- sudo apt-get install build-essential
- sudo apt-get install pkg-config
- sudo apt-get install libudev-dev
- sudo apt-get install libssl-dev
- sudo apt-get install libclang-8-dev
- git clone https://github.com/microsoft/vcpkg
- ./vcpkg/bootstrap-vcpkg.sh
- ./vcpkg/vcpkg install gtest
script:
- export CXX=g++
- export BINDGEN_EXTRA_CLANG_ARGS=-std=c++17
- export VCPKG=$(pwd)/vcpkg/scripts/buildsystems/vcpkg.cmake
- cargo build --release --workspace
- cargo test --release --workspace
- ./target/release/laplace-eq-therm-server
- ./target/release/laplace-eq-therm-client
- cd ./server/core
- mkdir -p build
- cd build
- cmake .. -DENABLE_LAPLACE_EQ_THERM_SERVER_CORE_TEST:BOOL=ON -DCMAKE_TOOLCHAIN_FILE:PATH=$VCPKG -DCMAKE_BUILD_TYPE=Release
- cmake --build . --config Release
- ctest
- name: macOS Big Sur + Clang
os: osx
osx_image: xcode12.5
install:
- git clone https://github.com/microsoft/vcpkg
- ./vcpkg/bootstrap-vcpkg.sh
- ./vcpkg/vcpkg install gtest
script:
- export BINDGEN_EXTRA_CLANG_ARGS=-std=c++17
- export VCPKG=$(pwd)/vcpkg/scripts/buildsystems/vcpkg.cmake
- cargo build --release --workspace
- cargo test --release --workspace
- ./target/release/laplace-eq-therm-server
- ./target/release/laplace-eq-therm-client
- cd ./server/core
- mkdir -p build
- cd build
- cmake .. -DENABLE_LAPLACE_EQ_THERM_SERVER_CORE_TEST:BOOL=ON -DCMAKE_TOOLCHAIN_FILE:PATH=$VCPKG -DCMAKE_BUILD_TYPE=Release
- cmake --build . --config Release
- ctest