-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yml
53 lines (53 loc) · 1.54 KB
/
build.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
- pipeline: "build"
trigger_mode: "ON_EVERY_PUSH"
ref_name: "master"
ref_type: "BRANCH"
trigger_condition: "ALWAYS"
actions:
- action: "Clean up"
type: "BUILD"
working_directory: "/buddy/chip8emulator"
docker_image_name: "library/ubuntu"
docker_image_tag: "18.04"
execute_commands:
- "rm -rf build/"
- "rm -rf *.tgz"
mount_filesystem_path: "/buddy/chip8emulator"
shell: "BASH"
trigger_condition: "ALWAYS"
- action: "Pack source code into a tarball"
type: "BUILD"
working_directory: "/buddy/chip8emulator"
docker_image_name: "library/ubuntu"
docker_image_tag: "18.04"
execute_commands:
- "BASENAME=$(basename `pwd`)"
- "SRC_PKG=libchip8emu-src-master-${BUDDY_EXECUTION_REVISION_SHORT}.tgz"
- "pushd .."
- "tar czf ${SRC_PKG} \\"
- "\t--exclude-vcs \\"
- "\t--exclude='*.tgz' \\"
- "\t--exclude build \\"
- "\t--exclude CMakeLists.txt.user \\"
- "\t${BASENAME}/"
- "popd"
- "mv ../${SRC_PKG} ."
mount_filesystem_path: "/buddy/chip8emulator"
shell: "BASH"
trigger_condition: "ALWAYS"
- action: "Execute: cmake --build ."
type: "BUILD"
working_directory: "/buddy/chip8emulator"
docker_image_name: "rikorose/gcc-cmake"
docker_image_tag: "latest"
execute_commands:
- "mkdir build"
- "cd build/"
- "cmake .."
- "cmake --build ."
setup_commands:
- "apt-get update"
- "apt-get -yq install libsdl2-dev"
mount_filesystem_path: "/buddy/chip8emulator"
shell: "BASH"
trigger_condition: "ALWAYS"