Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plugin-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
Library
plugin-template
Merge requests
!36
Devel
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
Devel
devel
into
master
Overview
0
Commits
44
Changes
1
Closed
Krzysztof Dyszczyk
requested to merge
devel
into
master
5 years ago
Overview
0
Commits
44
Changes
1
0
0
Merge request reports
Viewing commit
73293cff
Prev
Next
Show latest version
1 file
+
41
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
73293cff
Merge branch 'devel' into feature/issue-template
· 73293cff
Piotr Pomorski
authored
7 years ago
.gitlab-ci.yml
+
41
−
1
View file @ 73293cff
Show full file
variables
:
WPDESK_CI_VERSION
:
1.10.1
7
WPDESK_CI_VERSION
:
1.10.1
8
MYSQL_ROOT_PASSWORD
:
mysql
MYSQL_DATABASE
:
wptest
MYSQL_USER
:
mysql
@@ -146,6 +146,46 @@ integration test current woocommerce:
-
git clone https://github.com/woocommerce/woocommerce.git
-
cd ${CI_PROJECT_DIR}
acceptance test
:
image
:
wpdesknet/node
variables
:
CI_DEBUG_SERVICES
:
trace
services
:
-
name
:
mysql:5.6
alias
:
mysqltests
-
name
:
wpdesknet/apache-woocommerce:latest
alias
:
wootests
-
name
:
selenium/standalone-chrome
alias
:
selenium
artifacts
:
when
:
always
expire_in
:
1 day
name
:
"
error
logs"
paths
:
-
${CI_PROJECT_DIR}/acceptance
stage
:
tests
allow_failure
:
true
script
:
-
cd ${CI_PROJECT_DIR}
-
composer update --no-progress --no-dev
-
if [[ -f ${CI_PROJECT_DIR}/tests/acceptance/prepare.sh ]]; then sh ${CI_PROJECT_DIR}/tests/acceptance/prepare.sh; fi
-
export MYSQL_IP=$(awk '/^[[:space:]]*($|#)/{next} /mysqltests/{print $1; exit}' /etc/hosts)
-
export WOOTESTS_IP=$(awk '/^[[:space:]]*($|#)/{next} /wootests/{print $1; exit}' /etc/hosts)
-
echo "http://wootests/wpdesk_init.php?mysql_ip=${MYSQL_IP}&wootests_ip=${WOOTESTS_IP}"
-
wget -O /tmp/wpdesk_init.txt "http://wootests/wpdesk_init.php?mysql_ip=${MYSQL_IP}&wootests_ip=${WOOTESTS_IP}"
-
tail -50 /tmp/wpdesk_init.txt
-
sh /tmp/clone.sh git@gitlab.com:wpdesk/plugins-tests.git /tmp/tests headless
-
cd /tmp/tests
-
npm install
-
npm install -g grunt-cli
-
cd node_modules/.bin
-
./webdriver-manager update
-
cd ../
-
mkdir -p ${CI_PROJECT_DIR}/acceptance/reports/html/screenshot
-
grunt chrome-${CI_PROJECT_NAME}
apigen docs
:
image
:
Loading