forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (43 loc) · 1.03 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
language: perl
matrix:
include:
- name: "openSUSE/SUSE production perl version, only compile check"
perl: "5.18"
env: TESTS=compile
- name: "testing perl version, static checks"
perl: "5.26"
env: TESTS=static
- name: "testing perl version, unit tests"
perl: "5.26"
env: TESTS=unit
env:
global:
addons:
apt:
packages:
- libdbus-1-dev
- libssh2-1-dev
- parallel
cache:
directories:
- $HOME/perl5
before_install:
- eval $(curl https://travis-perl.github.io/init) --perl --always-upgrade-modules
- echo "requires 'Code::DRY';" >> cpanfile
- echo "requires 'Perl::Tidy', '== 20190915';" >> cpanfile
install:
- make prepare
script:
- git checkout cpanfile
- source script/generateLibDocs.sh
- make test
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local-dir: $TRAVIS_BUILD_DIR/docs/
on:
branch: master
condition: "$NEW_DEPLOY_NEEDED = 1 && $TESTS = unit"
target_branch: gh-pages