-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
23 lines (18 loc) · 895 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: php
before_install:
- echo -e "-----BEGIN OPENSSH PRIVATE KEY-----\n$(echo $SSH_PRIVATE_KEY | fold -w71)\n-----END OPENSSH PRIVATE KEY-----" > "$HOME/.ssh/id_ed25519"
- chmod 600 "$HOME/.ssh/id_ed25519"
install:
- composer install
before_script:
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then export GIT_SRC="[email protected]:"; else export GIT_SRC="https://github.com/"; fi
- git clone ${GIT_SRC}phpseclib/phpseclib.git
- git clone ${GIT_SRC}phpseclib/api.phpseclib.org.git
- find api.phpseclib.org -mindepth 1 -maxdepth 1 -type d -not -name .git -exec rm -rf {} \;
script:
- vendor/bin/doctum.php update --no-interaction --ignore-parse-errors --verbose --force doctum.conf.php
after_success:
- cd api.phpseclib.org
- ls -lahR
- git add . && git commit -m "Updated via Travis CI."
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then git push; else echo 'skipped.'; fi