Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sboports
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Kaisar Arkhan
sboports
Commits
f4ef1d7a
Commit
f4ef1d7a
authored
Nov 17, 2018
by
Muhammad Kaisar Arkhan
🔫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup CI
parent
d09680b1
Pipeline
#36961930
failed
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
109 additions
and
36 deletions
+109
-36
.gitlab-ci.yml
.gitlab-ci.yml
+107
-0
.travis.yml
.travis.yml
+0
-34
install.sh
t/travis-deps/install.sh
+2
-2
No files found.
.gitlab-ci.yml
0 → 100644
View file @
f4ef1d7a
# GitLab CI Configuration
# Definitions:
# - pure : Non-multilib environment
# - multilib : Multilib environment without convertpkg
# - convertpkg : Multilib environment with convertpkg
# YAML Templates for tests
# ========================
# Offline tests
# -------------
.test:template:offline:pure
:
&test_template_offline_pure
before_script
:
-
echo "TEST_ONLINE=$TEST_ONLINE, TEST_INSTALL=$TEST_INSTALL, TEST_MUTLILIB=$TEST_MULTILIB"
-
perl -v
-
bash ./t/travis-deps/install.sh
-
cpanm Text::Diff Capture::Tiny Test::Output Devel::Cover Test::Exit
script
:
-
"
PERL5OPT='-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine,+ignore,t/,+ignore,prove,dbprove'
prove
-v
t/*.t"
variables
:
TEST_ONLINE
:
0
TEST_INSTALL
:
1
TEST_MULTILIB
:
0
TRAVIS
:
true
# TODO: Replace the tests with proper GitLab CI checks
.test:template:offline:multilib
:
&test_template_offline_multilib
<<
:
*test_template_offline_pure
variables
:
TEST_ONLINE
:
0
TEST_INSTALL
:
1
TEST_MULTILIB
:
1
TRAVIS
:
true
# TODO: Replace the tests with proper GitLab CI checks
.test:template:offline:convertpkg
:
&test_template_offline_convertpkg
<<
:
*test_template_offline_pure
variables
:
TEST_ONLINE
:
0
TEST_INSTALL
:
1
TEST_MULTILIB
:
2
TRAVIS
:
true
# TODO: Replace the tests with proper GitLab CI checks
# Online tests
# ------------
.test:template:online:pure
:
&test_template_online_pure
<<
:
*test_template_offline_pure
variables
:
TEST_ONLINE
:
1
TEST_INSTALL
:
1
TEST_MULTILIB
:
0
TRAVIS
:
true
.test:template:online:multilib
:
&test_template_online_multilib
<<
:
*test_template_offline_pure
variables
:
TEST_ONLINE
:
1
TEST_INSTALL
:
1
TEST_MULTILIB
:
1
TRAVIS
:
true
# TODO: Replace the tests with proper GitLab CI checks
.test:template:online:convertpkg
:
&test_template_online_convertpkg
<<
:
*test_template_offline_pure
variables
:
TEST_ONLINE
:
1
TEST_INSTALL
:
1
TEST_MULTILIB
:
2
TRAVIS
:
true
# TODO: Replace the tests with proper GitLab CI checks
# Stages
# ======
stages
:
-
test
-
package
# Tests
# =====
# Latest Perl
# -----------
test:latest:offline:pure
:
image
:
perl:latest
<<
:
*test_template_offline_pure
test:latest:offline:multilib
:
image
:
perl:latest
<<
:
*test_template_offline_multilib
test:latest:offline:convertpkg
:
image
:
perl:latest
<<
:
*test_template_offline_convertpkg
test:latest:online:pure
:
image
:
perl:latest
<<
:
*test_template_online_pure
test:latest:online:multilib
:
image
:
perl:latest
<<
:
*test_template_online_multilib
test:latest:online:convertpkg
:
image
:
perl:latest
<<
:
*test_template_online_convertpkg
.travis.yml
deleted
100644 → 0
View file @
d09680b1
language
:
perl
perl
:
-
"
5.26"
-
"
5.22"
-
"
5.18"
-
"
5.16"
env
:
-
TEST_ONLINE=1 TEST_INSTALL=1 TEST_MULTILIB=0
-
TEST_ONLINE=1 TEST_INSTALL=1 TEST_MULTILIB=1
-
TEST_ONLINE=1 TEST_INSTALL=1 TEST_MULTILIB=2
-
TEST_ONLINE=0 TEST_INSTALL=1 TEST_MULTILIB=0
-
TEST_ONLINE=0 TEST_INSTALL=1 TEST_MULTILIB=1
-
TEST_ONLINE=0 TEST_INSTALL=1 TEST_MULTILIB=2
sudo
:
required
install
:
-
sudo bash t/travis-deps/install.sh
-
cpanm Text::Diff Capture::Tiny Test::Output Devel::Cover Test::Exit
script
:
-
bash -c '
PROVE=`which prove`;
sudo
PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine,+ignore,t/,+ignore,prove,db,/home/travis/build/pink-mist/sbotools/cover_db
$PROVE -v t/*.t;'
-
sudo chmod -R a+x cover_db;
tar cvf cover_db.tar cover_db
addons
:
artifacts
:
paths
:
"
./cover_db.tar"
notifications
:
irc
:
channels
:
-
"
chat.freenode.net#sbotools"
on_success
:
change
on_failure
:
change
t/travis-deps/install.sh
100644 → 100755
View file @
f4ef1d7a
...
...
@@ -17,6 +17,6 @@ then
touch
/etc/profile.d/32dev.sh
cp
-a
t/travis-deps/convertpkg-compat32 /usr/sbin
fi
git config
--global
user.email
"sbotools@
travis.ci
"
git config
--global
user.name
"
Travis
CI"
git config
--global
user.email
"sbotools@
gitlab.com
"
git config
--global
user.name
"
GitLab
CI"
echo
"travis-deps/install.sh: Done."
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment