diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2020-11-26 09:22:32 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-12-11 13:45:11 -0800 |
commit | 8d04b3ce745821b18c78ba5ee19e4f00726d8d89 (patch) | |
tree | c2926c692c24754e6d670521c1d812a0f32bfa24 /ci | |
parent | b65168c558c64cd2af4a9586443c295c5bec1114 (diff) | |
download | meson-8d04b3ce745821b18c78ba5ee19e4f00726d8d89.zip meson-8d04b3ce745821b18c78ba5ee19e4f00726d8d89.tar.gz meson-8d04b3ce745821b18c78ba5ee19e4f00726d8d89.tar.bz2 |
CI: Move all remaining jobs from travis-ci to GHA
Some changes:
* Set HOME to /root, since github mounts its own HOME and 'wine'
(because of permissions) and 'dub' (can't find packages) don't
like that.
* Remove the seccomp option, doesn't seem to be needed.
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/travis_install.sh | 9 | ||||
-rwxr-xr-x | ci/travis_script.sh | 57 |
2 files changed, 0 insertions, 66 deletions
diff --git a/ci/travis_install.sh b/ci/travis_install.sh deleted file mode 100755 index bbeb100..0000000 --- a/ci/travis_install.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -set -e - -msg() { echo -e "\x1b[1;32mINFO: \x1b[37m$*\x1b[0m"; } - -msg "Running Linux setup" -docker pull mesonbuild/eoan -msg "Setup finished" diff --git a/ci/travis_script.sh b/ci/travis_script.sh deleted file mode 100755 index e60e3a3..0000000 --- a/ci/travis_script.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -set -e - -msg() { echo -e "\x1b[1;32mINFO: \x1b[37m$*\x1b[0m"; } - -# TODO enable coverage -#curl -s https://codecov.io/bash > upload.sh -#chmod +x upload.sh - -# We need to copy the current checkout inside the Docker container, -# because it has the MR id to be tested checked out. - -msg "Generating runner:" -cat <<EOF | tee run.sh -#!/bin/bash - -set -e - -export CC=$CC -export CXX=$CXX -export OBJC=$CC -export OBJCXX=$CXX -export PATH=/root/tools:$PATH -if test "$MESON_RSP_THRESHOLD" != "" -then - export MESON_RSP_THRESHOLD=$MESON_RSP_THRESHOLD -fi - -source /ci/env_vars.sh -cd /root - -update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix -update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix -update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix -update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix - -./run_tests.py $RUN_TESTS_ARGS -- $MESON_ARGS -#./upload.sh - -EOF - - chmod +x run.sh - - msg "Generating Dockerfile:" - cat <<EOF | tee Dockerfile -FROM mesonbuild/eoan -ADD . /root - -EOF - -msg "Building the docker image..." -docker build -t test_img . - -msg "Start running tests" -#ci_env=`bash <(curl -s https://codecov.io/env)` -docker run --security-opt seccomp:unconfined test_img /root/run.sh |