diff options
| author | 2019-07-13 21:34:40 -0400 | |
|---|---|---|
| committer | 2019-07-13 21:34:40 -0400 | |
| commit | bbc5b5d62dfd66e623494bfc67fc469eae6551c6 (patch) | |
| tree | c0d52e7abea8f65b33e1016a31495205eb8b8c1c /.ci/scripts/linux | |
| parent | Merge pull request #2609 from FernandoS27/new-scan (diff) | |
| download | yuzu-bbc5b5d62dfd66e623494bfc67fc469eae6551c6.tar.gz yuzu-bbc5b5d62dfd66e623494bfc67fc469eae6551c6.tar.xz yuzu-bbc5b5d62dfd66e623494bfc67fc469eae6551c6.zip | |
Finalize Azure Pipelines Definitions
d
Diffstat (limited to '.ci/scripts/linux')
| -rw-r--r-- | .ci/scripts/linux/docker.sh | 14 | ||||
| -rw-r--r-- | .ci/scripts/linux/exec.sh | 5 | ||||
| -rw-r--r-- | .ci/scripts/linux/upload.sh | 14 |
3 files changed, 33 insertions, 0 deletions
diff --git a/.ci/scripts/linux/docker.sh b/.ci/scripts/linux/docker.sh new file mode 100644 index 000000000..f538a4081 --- /dev/null +++ b/.ci/scripts/linux/docker.sh | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #!/bin/bash -ex | ||
| 2 | |||
| 3 | cd /yuzu | ||
| 4 | |||
| 5 | ccache -s | ||
| 6 | |||
| 7 | mkdir build || true && cd build | ||
| 8 | cmake .. -G Ninja -DYUZU_USE_BUNDLED_UNICORN=ON -DYUZU_USE_QT_WEB_ENGINE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DUSE_DISCORD_PRESENCE=ON | ||
| 9 | |||
| 10 | ninja | ||
| 11 | |||
| 12 | ccache -s | ||
| 13 | |||
| 14 | ctest -VV -C Release | ||
diff --git a/.ci/scripts/linux/exec.sh b/.ci/scripts/linux/exec.sh new file mode 100644 index 000000000..a5a6c34b9 --- /dev/null +++ b/.ci/scripts/linux/exec.sh | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | #!/bin/bash -ex | ||
| 2 | |||
| 3 | mkdir -p "ccache" || true | ||
| 4 | chmod a+x ./.ci/scripts/linux/docker.sh | ||
| 5 | docker run -e ENABLE_COMPATIBILITY_REPORTING -e CCACHE_DIR=/yuzu/ccache -v $(pwd):/yuzu yuzuemu/build-environments:linux-fresh /bin/bash /yuzu/.ci/scripts/linux/docker.sh | ||
diff --git a/.ci/scripts/linux/upload.sh b/.ci/scripts/linux/upload.sh new file mode 100644 index 000000000..0d131d1dd --- /dev/null +++ b/.ci/scripts/linux/upload.sh | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #!/bin/bash -ex | ||
| 2 | |||
| 3 | . .ci/scripts/common/pre-upload.sh | ||
| 4 | |||
| 5 | REV_NAME="yuzu-linux-${GITDATE}-${GITREV}" | ||
| 6 | ARCHIVE_NAME="${REV_NAME}.tar.xz" | ||
| 7 | COMPRESSION_FLAGS="-cJvf" | ||
| 8 | |||
| 9 | mkdir "$REV_NAME" | ||
| 10 | |||
| 11 | cp build/bin/yuzu-cmd "$REV_NAME" | ||
| 12 | cp build/bin/yuzu "$REV_NAME" | ||
| 13 | |||
| 14 | . .ci/scripts/common/post-upload.sh | ||