forked from puppetlabs/puppet-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (49 loc) · 1.64 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dist: focal
sudo: false
services:
- docker
git:
depth: 250
language: ruby
bundler_args: --jobs 4 --retry 2 --without packaging documentation
before_install:
- gem update --system --force
before_script:
- 'git config --global user.email "[email protected]"'
- 'git config --global user.name "Your Name"'
script: "bundle exec rake $CHECK"
notifications:
email: false
matrix:
include:
- stage: puppet-agent lint
rvm: 2.5
env: "CHECK=rubocop"
- stage: puppet-agent lint
rvm: 2.5
env: "CHECK=commits"
- stage: puppet-agent container tests
language: ruby
rvm: 2.6.6
env:
- DOCKER_COMPOSE_VERSION=1.28.6
- DOCKER_BUILDX_VERSION=0.5.1
# necessary to prevent overwhelming TravisCI build output limits
- DOCKER_BUILD_FLAGS="--progress plain"
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl --location https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname --kernel-name`-`uname --machine` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- mkdir -vp ~/.docker/cli-plugins
- curl --location https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 > ~/.docker/cli-plugins/docker-buildx
- chmod +x ~/.docker/cli-plugins/docker-buildx
- docker buildx create --name travis_builder --use
script:
- set -e
- cd docker
- make lint
- make build
- make test
after_script:
- docker buildx rm travis_builder