-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.travis.yml
114 lines (100 loc) · 3.19 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: perl
perl:
- "5.16"
- "5.26"
- "5.28"
sudo: false
matrix:
include:
- perl: "5.26"
env:
- TEST_YANCY_BACKEND=sqlite:/tmp/sqlite3.db
addons:
apt:
packages:
- sqlite3
- libdbd-sqlite3-perl
install:
- sqlite3 /tmp/sqlite3.db < t/schema/sqlite.sql
- cpan-install --deps
- cpan-install --coverage
- cpan-install Mojo::SQLite
- perl: "5.26"
env:
- TEST_YANCY_BACKEND=mysql://travis@localhost/test_yancy
- TEST_ONLINE_MYSQL=mysql://travis@localhost/yancy_mysql_test
services:
- mysql
addons:
apt:
packages:
- libdbd-mysql-perl
install:
- mysql -u travis -e 'CREATE DATABASE yancy_mysql_test'
- mysql -u travis -e 'CREATE DATABASE test_yancy'
- mysql -u travis test_yancy < t/schema/mysql.sql
- cpan-install --deps
- cpan-install --coverage
- cpan-install DBD::[email protected] Mojo::mysql
- perl: "5.26"
env:
- TEST_YANCY_BACKEND=pg://postgres@localhost/test_yancy
- TEST_ONLINE_PG=postgres://postgres@localhost/test_backend
services:
- postgresql
addons:
postgresql: "10"
install:
- psql -c 'create database test_backend;' -U postgres
- psql -c 'create database test_yancy;' -U postgres
- psql -U postgres test_yancy < t/schema/pg.sql
- cpan-install --deps
- cpan-install --coverage
- cpanm -v DBD::[email protected] Mojo::Pg
- perl: "5.26"
env:
- "TEST_YANCY_BACKEND=dbic://Local::Schema/dbi:SQLite:/tmp/sqlite3.db"
addons:
apt:
packages:
- sqlite3
install:
- sqlite3 /tmp/sqlite3.db < t/schema/sqlite.sql
- cpan-install --deps
- cpan-install --coverage
- cpan-install DBIx::Class DBD::SQLite SQL::Translator
- perl: "5.26"
env: COVERAGE=1
- perl: "5.28"
env:
- TEST_YANCY_EXAMPLES=1
install:
- cpan-install --deps
- cpan-install --coverage
- cpan-install Mojo::SQLite Mojolicious::Plugin::PODViewer
- cpan-install Mojolicious::Command::export
- cpan-install DateTime DateTime::Event::Recurrence
- cpan-install Mojolicious::Plugin::AutoReload Yancy::Backend::Static
- perl: "5.28"
env:
- MOJO_NO_JSON_XS=1
allow_failures:
- env: COVERAGE=1
before_install:
- git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers
- source ~/travis-perl-helpers/init
- build-perl
- perl -V
- build-dist
- cd $BUILD_DIR
install:
- cpan-install --deps
- cpan-install --coverage
before_script:
- coverage-setup
script:
- perl Makefile.PL
- make
- prove -bv -j1 $(test-files) # keep it fixed order, non-parallel to avoid weird fails
after_success:
- coverage-report