-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake.yaml
59 lines (47 loc) · 1.3 KB
/
fake.yaml
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
# Use fake to launch CMake to create Makefiles to build fake
configure:
dependencies:
- CMakeLists.txt
- fake.yaml
target: build
run: cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
build:
dependencies:
- configure
- src/ExecutionQueueBuilder.cpp
- src/Task.cpp
- src/main.cpp
- include/ExecutionQueueBuilder.hpp
- include/Task.hpp
target: build/fake # Faulty on Windows
run: cmake --build build --target fake --config Release
build-tests:
dependencies:
- build
- gtest/TaskTest.cpp
- gtest/ExecutionQueueBuilderTest.cpp
target: build/gtest/test # Faulty on Windows
run: cmake --build build --target test --config Release
run-tests:
dependencies: [ build-tests ]
run: cd build/gtest && ctest
install: # Linux only
dependencies: [ build ]
target: /usr/local/bin/fake
run: sudo cp -f build/fake /usr/local/bin
remove: # Linux only
run: sudo rm /usr/local/bin/fake
update:
run: git pull
clean: # Linux only
run: rm -rf build
# Additional testing tasks
cyclic1: # Should fail as self-dependent
dependencies: [ cyclic2 ]
run: echo "Hello "
cyclic2: # Should fail as self-dependent
dependencies: [ cyclic1 ]
run: echo "world! "
cyclic3: # Should fail saying that cyclic1 is self-dependent
dependencies: [ cyclic1 ]
run: echo "@_@ < 'im dizzy'"