-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
33 lines (29 loc) · 1.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: shell
services:
- docker
before_install:
- docker run -v $PWD:/src "$DISTRO":latest /bin/sh -c "$INSTALL && gem install bundler --no-document --no-format-execut able && cd /src && bundle install && DISTRO=$DISTRO bundle exec rspec --tag docker"
env:
- DISTRO=archlinux INSTALL='pacman -Sy --noconfirm base-devel libffi ruby && PATH="$PATH:$(ruby -e "puts Gem.user_dir")/bin"'
- DISTRO=debian INSTALL="apt-get update && apt-get install -y build-essential ruby ruby-dev"
- DISTRO=fedora INSTALL='dnf install -y gcc-c++ make redhat-rpm-config ruby ruby-devel'
- DISTRO=linuxmintd/mint20-amd64 INSTALL="apt-get update && apt-get install -y build-essential ruby ruby-dev"
- DISTRO=manjarolinux/base INSTALL='pacman -Sy --noconfirm base-devel libffi ruby && PATH="$PATH:$(ruby -e "puts Gem.user_dir")/bin"'
- DISTRO=opensuse/leap INSTALL='zypper install -y gcc-c++ make ruby ruby-devel'
- DISTRO=opensuse/tumbleweed INSTALL='zypper install -y gcc-c++ make ruby ruby-devel'
- DISTRO=ubuntu INSTALL="apt-get update && apt-get install -y build-essential ruby ruby-dev"
jobs:
include:
- &shared
language: ruby
rvm: ruby # Latest stable version
script: bundle exec rspec --tag ~docker # Don't run specs with docker: true
cache: bundler
# Clear out values that were set above specifically for docker runs
env:
before_install:
services:
- <<: *shared
os: linux
- <<: *shared
os: osx