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
!24
Feature/acceptance2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Feature/acceptance2
feature/acceptance2
into
devel
Overview
0
Commits
6
Changes
1
Merged
Krzysztof Dyszczyk
requested to merge
feature/acceptance2
into
devel
7 years ago
Overview
0
Commits
6
Changes
1
0
0
Merge request reports
Compare
devel
devel (base)
and
latest version
latest version
ffbef929
6 commits,
7 years ago
1 file
+
41
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
41
−
1
View file @ ffbef929
Edit in single-file editor
Open in Web IDE
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