forked from victorprad/InfiniTAM
-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
89 lines (75 loc) · 2.82 KB
/
appveyor.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
#build: on
#test: on
build_cloud: Juggernaut
image:
- Linux
- Ubuntu1804
platform: x64
configuration:
- Release
matrix:
fast_finish: false
for:
-
build_cloud: Juggernaut
image: Linux
-
image: Ubuntu1804
-
matrix:
only:
- image: Ubuntu1804
install:
- sh: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update -qq && sudo apt-get install -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libboost-filesystem-dev libboost-iostreams-dev libboost-test-dev libboost-program-options-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install freeglut3-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libavcodec-dev libavfilter-dev libavdevice-dev libavformat-dev libavresample-dev libswresample-dev libswscale-dev
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install libpng-dev libxss-dev libegl1-mesa-dev libglu1-mesa-dev libglvnd-dev
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo DEBIAN_FRONTEND=noninteractive apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo DEBIAN_FRONTEND=noninteractive add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" -y
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install cuda
sudo ln -s /usr/local/cuda-11.0 /usr/local/cuda
# clone_folder: ~/InfiniTAM
# -
# matrix:
# only:
# - image: Visual Studio 2017
# clone_folder: c:\projects\InfiniTAM
# Ubuntu
install:
- sh : |
export CUDACXX=/usr/local/cuda/bin/nvcc
# scripts that run after install scripts finish and services are started
build_script:
- sh: |
echo "Build Script for Ubuntu, Image: $APPVEYOR_BUILD_WORKER_IMAGE, Configuration: $CONFIGURATION"
mkdir build && cd build
- sh: >
cmake
-DCMAKE_BUILD_TYPE=$CONFIGURATION
-DBUILD_TESTS=ON
-DWITH_CUDA=ON
-DWITH_OPENMP=ON
-DWITH_FFMPEG=ON
-DCMAKE_CXX_COMPILER=/usr/bin/g++-9
-DCMAKE_C_COMPILER=/usr/bin/gcc-9
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
..
- sh: make -j8
test_script:
- sh: |
echo "Generating test data..."
cd $APPVEYOR_BUILD_FOLDER/build/Tests
ls "$APPVEYOR_BUILD_FOLDER/build/Tests"
./generate_derived_test_data
cd ..
cmake ..
cd Tests
echo "Running Tests..."
cd $APPVEYOR_BUILD_FOLDER/build/Tests
ctest --output-on-failure