Skip to content

Commit b453b46

Browse files
committed
Indent TravisCI config
1 parent 47673a6 commit b453b46

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

.travis.yml

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,55 @@ if: "branch = master"
44

55
language: "php"
66
os:
7-
- "linux"
7+
- "linux"
88
dist: "bionic"
99

1010
php:
11-
# - "8.1"
12-
- "8.0"
13-
- "7.4"
11+
#- "8.1"
12+
- "8.0"
13+
- "7.4"
1414

1515
cache:
16-
directories:
16+
directories:
1717
- "$HOME/.composer/cache"
1818

1919
before_install:
20-
- "phpenv config-rm xdebug.ini"
21-
- "composer validate --strict"
20+
- "phpenv config-rm xdebug.ini"
21+
- "composer validate --strict"
2222

2323
install:
24-
- |
24+
- |
2525
if ! php --ri sodium; then
2626
# https://github.com/paragonie/sodium_compat/pull/104
2727
#composer require --no-interaction --dev "paragonie/sodium_compat"
2828
LIBSODIUM_VERSION="1.0.18"
2929
wget "https://github.com/jedisct1/libsodium/releases/download/${LIBSODIUM_VERSION}-RELEASE/libsodium-${LIBSODIUM_VERSION}.tar.gz"
3030
tar -xf libsodium-${LIBSODIUM_VERSION}.tar.gz
31-
cd libsodium-${LIBSODIUM_VERSION} && ./configure --prefix="$HOME/libsodium" && make check && make install && cd -
32-
LD_LIBRARY_PATH="$HOME/libsodium/lib:$LD_LIBRARY_PATH" \
33-
PKG_CONFIG_PATH="$HOME/libsodium/lib/pkgconfig:$PKG_CONFIG_PATH" \
34-
LDFLAGS="-L$HOME/libsodium/lib" \
31+
cd libsodium-${LIBSODIUM_VERSION}
32+
./configure --prefix="${HOME}/libsodium"
33+
make check
34+
make install
35+
cd -
36+
LD_LIBRARY_PATH="${HOME}/libsodium/lib:${LD_LIBRARY_PATH}" \
37+
PKG_CONFIG_PATH="${HOME}/libsodium/lib/pkgconfig:${PKG_CONFIG_PATH}" \
38+
LDFLAGS="-L${HOME}/libsodium/lib" \
3539
pecl install libsodium
3640
php --ri sodium
3741
fi
38-
- "composer update --no-interaction"
39-
- "composer run post-install-cmd"
42+
- "composer update --no-interaction"
43+
- "composer run post-install-cmd"
4044

4145
before_script:
42-
- "cat ./source/wordpress/wp-includes/version.php"
46+
- "cat ./source/wordpress/wp-includes/version.php"
4347

4448
script:
45-
# Generate stubs
46-
- "./generate.sh"
47-
# Check stubs syntax
48-
- "php -l wordpress-stubs.php"
49-
# Check stubs changes compared to repository
50-
- "git diff --exit-code"
51-
# Execute stubs
52-
- "php -f wordpress-stubs.php"
53-
# Run all tests
54-
- "composer run test"
49+
# Generate stubs
50+
- "./generate.sh"
51+
# Check stubs syntax
52+
- "php -l wordpress-stubs.php"
53+
# Check stubs changes compared to repository
54+
- "git diff --exit-code"
55+
# Execute stubs
56+
- "php -f wordpress-stubs.php"
57+
# Run all tests
58+
- "composer run test"

0 commit comments

Comments
 (0)