forked from xwp/wp-foo-bar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dev-lib
More file actions
43 lines (35 loc) · 712 Bytes
/
.dev-lib
File metadata and controls
43 lines (35 loc) · 712 Bytes
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
DEFAULT_BASE_BRANCH=develop
ASSETS_DIR=wp-assets
README_MD_TITLE="Foo Bar Plugin for WordPress"
CHECK_SCOPE=all
DOCKER_PHPUNIT_BIN=bin/phpunit.sh
TRAVIS_CI_COM_URL=true
BADGE_FURY_URL=https://badge.fury.io/gh/xwp%2Fwp-foo-bar
source ./bin/includes.sh
function can_run_e2e() {
if command_exists "curl" && is_wp_available "$1"; then
return 0
fi
return 1
}
function run_tests {
if [ "$TRAVIS" != true ]; then
echo ""
echo "## Linting"
npm run lint
echo ""
fi
}
function run_after_tests {
if [ "$TRAVIS" != true ]; then
echo ""
echo "## JavaScript tests"
npm run test:js
if can_run_e2e "localhost:8088"; then
echo ""
echo "## E2E tests"
npm run test:e2e
fi
echo ""
fi
}