forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-travis.sh
More file actions
executable file
·53 lines (45 loc) · 975 Bytes
/
run-travis.sh
File metadata and controls
executable file
·53 lines (45 loc) · 975 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
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
if [ "$WP_TRAVISCI" == "phpunit" ]; then
echo "Testing on WordPress master..."
cd /tmp/wordpress-master/src/wp-content/plugins/$PLUGIN_SLUG
if $WP_TRAVISCI; then
# Everything is fine
:
else
exit 1
fi
echo "Testing on WordPress stable..."
cd /tmp/wordpress-latest/src/wp-content/plugins/$PLUGIN_SLUG
if $WP_TRAVISCI; then
# Everything is fine
:
else
exit 1
fi
echo "Testing in Multisite mode on WordPress stable..."
if WP_MULTISITE=1 $WP_TRAVISCI -c tests/php.multisite.xml; then
# Everything is fine
:
else
exit 1
fi
echo "Testing on WordPress stable minus one..."
cd /tmp/wordpress-previous/src/wp-content/plugins/$PLUGIN_SLUG
if $WP_TRAVISCI; then
# Everything is fine
:
else
exit 1
fi
else
gem install sass
gem install compass
yarn
if $WP_TRAVISCI; then
# Everything is fine
:
else
exit 1
fi
fi
exit 0