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
Commits
73293cff
Commit
73293cff
authored
7 years ago
by
Piotr Pomorski
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel' into feature/issue-template
parents
e03bd458
689b7b15
No related branches found
No related tags found
2 merge requests
!36
Devel
,
!23
Fixes #1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+41
-1
41 additions, 1 deletion
.gitlab-ci.yml
with
41 additions
and
1 deletion
.gitlab-ci.yml
+
41
−
1
View file @
73293cff
variables
:
variables
:
WPDESK_CI_VERSION
:
1.10.1
7
WPDESK_CI_VERSION
:
1.10.1
8
MYSQL_ROOT_PASSWORD
:
mysql
MYSQL_ROOT_PASSWORD
:
mysql
MYSQL_DATABASE
:
wptest
MYSQL_DATABASE
:
wptest
MYSQL_USER
:
mysql
MYSQL_USER
:
mysql
...
@@ -146,6 +146,46 @@ integration test current woocommerce:
...
@@ -146,6 +146,46 @@ integration test current woocommerce:
-
git clone https://github.com/woocommerce/woocommerce.git
-
git clone https://github.com/woocommerce/woocommerce.git
-
cd ${CI_PROJECT_DIR}
-
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
:
apigen docs
:
image
:
image
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment