-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
50 lines (47 loc) · 1.41 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
language: cpp
dist: focal
compiler: gcc
notification:
email: false
sudo: required
jobs:
include:
- stage: debug
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=address -fsanitize=leak" -DDOWNLOAD_DATA=OFF ..
- make -j8
- find ./bin/ -name '*tests' -type f -executable | while read fname; do $fname; done;
- stage: release
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j8
- find ./bin/ -name '*tests' -type f -executable | while read fname; do $fname; done;
- stage: samples
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j8
- export DW_BUILD_PATH=build
- export DATASETS_DIR=datasets
- cd ../
- ./samples/iris/run_iris_train.sh
- ./samples/iris/run_iris_test.sh
- ./samples/mnist/run_mnist_train.sh
- ./samples/mnist/run_mnist_test.sh
- ./samples/cifar10/run_cifar10_train.sh
- ./samples/cifar10/run_cifar10_test.sh
- stage: benchmarks
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j8
- export DW_BUILD_PATH=build
- export DATASETS_DIR=datasets
- cd ../
- ./benchmarks/mnist/run_mnist_benchmark.sh