forked from puppetlabs/puppet-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (40 loc) · 1.08 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
sudo: false
services:
- docker
git:
depth: 150
language: ruby
bundler_args: --without development
before_install:
- gem install bundler -v '< 2' --no-document;
before_script:
- 'git config --global user.email "[email protected]"'
- 'git config --global user.name "Your Name"'
script: "bundle exec $CHECK"
notifications:
email: false
matrix:
include:
- stage: puppet-agent lint
rvm: 2.1.7
env: "CHECK='rubocop -D'"
- stage: puppet-agent lint
rvm: 2.1.7
env: "CHECK='rake commits'"
- stage: puppet-agent container tests
language: ruby
rvm: 2.5.5
env:
- DOCKER_COMPOSE_VERSION=1.24.0
script:
- |
set -ex
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
cd docker
make lint
make build
make test
set +x