Révision 705bb26f
Add travis ci configuration
.gitlab-ci.yml | ||
---|---|---|
10 | 10 |
- vendor/bundle |
11 | 11 |
|
12 | 12 |
before_script: |
13 |
- echo -e "machine code.immerda.ch\nlogin gitlab-ci-token\npassword $CI_JOB_TOKEN" > ~/.netrc |
|
14 | 13 |
- bundle -v |
15 | 14 |
- rm Gemfile.lock || true |
16 | 15 |
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner" |
.sync.yml | ||
---|---|---|
1 | 1 |
--- |
2 | 2 |
.gitlab-ci.yml: |
3 | 3 |
custom: |
4 |
custom_before_steps: |
|
5 |
- echo -e "machine code.immerda.ch\nlogin gitlab-ci-token\npassword $CI_JOB_TOKEN" > ~/.netrc |
|
6 | 4 |
image: 'registry.code.immerda.ch/immerda/container-images/ruby/devel:2.7' |
7 |
|
|
8 |
.travis.yml: |
|
9 |
delete: true |
.travis.yml | ||
---|---|---|
1 |
--- |
|
2 |
os: linux |
|
3 |
dist: xenial |
|
4 |
language: ruby |
|
5 |
cache: bundler |
|
6 |
before_install: |
|
7 |
- bundle -v |
|
8 |
- rm -f Gemfile.lock |
|
9 |
- "# Update system gems if requested. This is useful to temporarily workaround troubles in the test runner" |
|
10 |
- "# See https://github.com/puppetlabs/pdk-templates/commit/705154d5c437796b821691b707156e1b056d244f for an example of how this was used" |
|
11 |
- "# Ignore exit code of SIGPIPE'd yes to not fail with shell's pipefail set" |
|
12 |
- '[ -z "$RUBYGEMS_VERSION" ] || (yes || true) | gem update --system $RUBYGEMS_VERSION' |
|
13 |
- gem --version |
|
14 |
- bundle -v |
|
15 |
script: |
|
16 |
- 'bundle exec rake $CHECK' |
|
17 |
bundler_args: --without system_tests |
|
18 |
rvm: |
|
19 |
- 2.5.7 |
|
20 |
stages: |
|
21 |
- static |
|
22 |
- spec |
|
23 |
- acceptance |
|
24 |
- |
|
25 |
if: tag =~ ^v\d |
|
26 |
name: deploy |
|
27 |
jobs: |
|
28 |
fast_finish: true |
|
29 |
include: |
|
30 |
- |
|
31 |
env: CHECK="check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop syntax lint metadata_lint" |
|
32 |
stage: static |
|
33 |
- |
|
34 |
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec |
|
35 |
rvm: 2.4.5 |
|
36 |
stage: spec |
|
37 |
- |
|
38 |
env: PUPPET_GEM_VERSION="~> 6.0" CHECK=parallel_spec |
|
39 |
rvm: 2.5.7 |
|
40 |
stage: spec |
|
41 |
- |
|
42 |
env: DEPLOY_TO_FORGE=yes |
|
43 |
stage: deploy |
|
44 |
branches: |
|
45 |
only: |
|
46 |
- master |
|
47 |
- /^v\d/ |
|
48 |
notifications: |
|
49 |
email: false |
Formats disponibles : Unified diff