Here, I am giving some quick (uncommented) steps to set up a docker container on your computer to run travis ci on it.
Installing docker on Ubuntu 18
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
Prepare a u18 container and jump into it
sudo docker pull ubuntu
sudo docker run -it ubuntu
Install travis in the container
apt-get install -y git gem rubygems
apt-get install -y rubyruby -e 'puts RUBY_VERSION[/\d+\.\d+/]'
-dev
git clone https://github.com/travis-ci/travis-build.git
cd build
gem install travis
travis # to create ~/.travis
ln -spwd
~/.travis/travis-build
bundle install
Run travis
git clone git@github.com:AUTHOR/PROJECT.git
cd PROJECT
travis compile > ci.sh
bash ci.sh