Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: add tool to test release and beta builds on different distributions #1444

Merged
merged 6 commits into from
Jan 27, 2020

Conversation

remusao
Copy link
Contributor

@remusao remusao commented Jan 21, 2020

This script (which only runs on Linux) can be used to test Cliqz builds on a matrix of different distributions. The idea would be to allow automating some basic tests on the different operating systems that we support. This PR is only a first step towards that goal. The script is able to build a custom docker image and install Cliqz (beta or release versions), on any of the <os> supported (see below) as well as with a specified <flavor> (e.g. rpm, deb, ppa, aur); not all operating systems support all flavors. Here is the usage:

Usage: run.sh <channel> <os> <flavor> [<archive>]
  where:
    <channel> must be one of:
      - beta
      - release
      - local
    <os> must be one of:
      - ubuntu
      - ubuntu:16.04
      - ubuntu:18.04
      - ubuntu:19.04
      - ubuntu:19.10
      - debian
      - debian:10
      - debian:buster
      - opensuse
      - opensuse:15
      - opensuse:leap
      - opensuse:16
      - opensuse:tumbleweed
      - fedora
      - fedora:28
      - fedora:29
      - fedora:30
      - fedora:31
      - centos
      - centos:8
      - archlinux
    <flavor> must be one of:
      - ppa
      - deb
      - rpm
      - aur

Examples:
  ./run.sh release ubuntu ppa
  ./run.sh release debian:buster deb
  ./run.sh beta ubuntu:18.04 ppa
  ./run.sh beta opensuse:tumbleweed rpm
  ./run.sh local opensuse rpm ./foo/bar/cliqz.rpm
  ./run.sh local ubuntu deb ./foo/bar/cliqz.deb

docker/run.sh Outdated Show resolved Hide resolved
docker/run.sh Outdated Show resolved Hide resolved
docker/run.sh Outdated Show resolved Hide resolved
@philipp-classen
Copy link

Nice tool. I had some stylistic comments, but overall it looks good!

@remusao
Copy link
Contributor Author

remusao commented Jan 22, 2020

@alver-cliqz Good to go from my side. Let me know if you wanna discuss next steps there.

@remusao
Copy link
Contributor Author

remusao commented Jan 23, 2020

@philipp-classen I've updated the script with the ability to test a local .deb or .rpm, and also cleaned-up some aspects of the code. ./run.sh local ubuntu deb ./foo/bar/cliqz.deb

@alver-cliqz alver-cliqz merged commit 32e9174 into cliqz-oss:master Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants