diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 8efae1f..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,2 +0,0 @@ -github: fsquillace -custom: https://github.com/fsquillace/junest/blob/master/README.md#donating diff --git a/.gitignore b/.gitignore index b47a408..1377554 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ *.swp -*pkg.tar.* -*.tar.gz -*.SRCINFO diff --git a/.travis.yml b/.travis.yml index fab23ba..94afa57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,62 +1,30 @@ +language: bash + sudo: required -os: linux - -cache: - directories: - - ~/.ccache - - ~/.pkg-cache - -services: -- docker env: - matrix: - TRAVIS_BASH_VERSION="4.0" before_install: - - ./ci/install-bash.sh "$TRAVIS_BASH_VERSION" - - sudo apt-get update - - sudo apt-get -y install awscli + - ./tests/integ-tests/install-bash.sh "$TRAVIS_BASH_VERSION" install: - PATH=$PWD/bin:$PATH + - junest -- echo "Installing JuNest (\$(uname -m))" + - JUNEST_HOME=~/.junest-arm junest -a arm -- echo "Installing JuNest (\$(uname -m))" + # TODO: Remember to enable x86 tests when fixed + #- JUNEST_HOME=~/.junest-x86 junest -a x86 -- echo "Installing JuNest (\$(uname -m))" script: - ####################### - # Unit Tests - ####################### - bash --version - bash ./tests/checkstyle/checkstyle.sh - bash ./tests/unit-tests/unit-tests.sh - - shellcheck bin/junest lib/**/*.sh ci/*.sh tests/**/*.sh - # ARM with qemu does seem to work properly. Disabling integ tests for ARM for now. - #- export JUNEST_HOME=~/.junest-arm - #- junest setup --arch arm - #- junest proot --fakeroot -- echo "Installing JuNest (\$(uname -m))" - #- junest proot --fakeroot -- ${PWD}/lib/checks/check.sh --skip-aur-tests - #- junest proot -- ${PWD}/lib/checks/check.sh --skip-aur-tests --use-sudo - #- yes | junest setup --delete + # Multiple tests against different execution modes: + - junest -f -- ${PWD}/lib/checks/check.sh + - junest -u -- ${PWD}/lib/checks/check.sh + - sudo -E ${PWD}/bin/junest -g -- ${PWD}/lib/checks/check.sh --run-root-tests + - yes | junest --delete - ####################### - # Build and validation - ####################### - - echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin - - docker run --rm -v "$(pwd):/build" -v ~/.ccache:/home/travis/.ccache -v ~/.pkg-cache:/var/cache/pacman/pkg --privileged archlinux:latest bash /build/ci/build_image.sh - - - "echo pacman pkg cache size: $(du -h ~/.pkg-cache|cut -f1) in $(ls ~/.pkg-cache|wc -l) files" - - ls -l - # Test the newly created JuNest image against Ubuntu host - - export JUNEST_HOME=~/.junest - - junest setup -i junest-x86_64.tar.gz - # TODO The check does not work at the moment: https://app.travis-ci.com/github/fsquillace/junest/builds/271706037 - # Disabling it in order to avoid having stale version of junest images. - - ${PWD}/lib/checks/check_all.sh - - yes | junest setup --delete - - -after_success: - ####################### - # Deploy and validation - ####################### - - ./ci/deploy.sh ./junest-x86_64.tar.gz + - JUNEST_HOME=~/.junest-arm junest -f -- ./lib/checks/check.sh + - yes | JUNEST_HOME=~/.junest-arm junest --delete diff --git a/README.md b/README.md index 1268f8b..713d194 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,6 @@ JuNest ====== - -> [!IMPORTANT] -> Starting from Ubuntu 23.10+, [unprivileged user namespaces has been restricted](https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces). -> If using JuNest within Ubuntu, you may need root privileges in order to enable it. -> Alternatively, you can access JuNest using the `proot` mode as described -> [below](#Proot-based). - -The lightweight Arch Linux based distro that runs, without root privileges, on top of any other Linux distro. +The lightweight Arch Linux based distro that runs upon any Linux distros without root access.