You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.1 KiB
61 lines
2.1 KiB
dist: bionic |
|
language: php |
|
sudo: false |
|
notifications: |
|
email: |
|
on_success: never |
|
on_failure: change |
|
slack: |
|
secure: EN5LZc4Ba3w48Nb9Xdh6WITgUf0qphkb3ZEDxTrBSfaSZuHAOqhQ2dDdfT8ds1vBkGTE80JVGXa2YDNDIyqK8JY1mR3V3MzeZMWLwfspPQj0/t8g/GFzc99M87dIEPZofCvj/CoRVGNG3rghe8TftAcf233rKvTSWtbADOvmfq6v/cedeh4/W1DgkrA5dcmTwpqyoOLzWbSXEMpwUxHfX88UHxNO2+IS9nvVXNf2CJ8C2dltEbRwFfKB20b/jIXvjgrmR9T2Al9M5qWXjpewssEU4hcEP8gPETx1l0VbIqq182ar9I2OKjmIYLuaVvgSp56TnPs+DBPnUOVDQZ3ykdXH8mzzPT9IhChZJEYMz+D0l9Jb6saWhqxzDMJ30fXt67HYgCO6kWfCZOpefwukoOZC7bZtnL98s0qTYHL5nt+h7+522XDAm8B5a0sKzvnV7IF30YlPdt/eHkEQF14954x4yGZO2Q3M0kR6I/roaJ4HQh1P2h0yswyRucIHFgGd4f1QQ64VOpUyJ4rNybVfcAn/zPuXjcjucxmNbyrf7vk8kCgCfF11ejO0aSYzjVjO+jE5Edkur9kmRbwMcc+HOb79eZhPT9ISMo8Bz/QhbbvCOlSDgagGrP3h+Zy17JIYmHJJJojdANjMtu9tf7sUrfTza6+r46Thnuwpxf+kdbM= |
|
branches: |
|
only: |
|
- dev |
|
- hotfix |
|
- "/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(-(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\\+[0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*)?$/" |
|
php: |
|
- 7.1 |
|
- 7.2 |
|
- 7.3 |
|
env: |
|
- TRAVIS_NODE_VERSION="10" |
|
matrix: |
|
allow_failures: |
|
- php: nightly |
|
cache: |
|
apt: true |
|
directories: |
|
- "$HOME/.composer/cache" |
|
- node_modules |
|
- vendor |
|
before_install: |
|
- composer self-update |
|
- source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION && nvm use $TRAVIS_NODE_VERSION |
|
install: |
|
- node -v |
|
- npm install |
|
- composer install -o --prefer-dist --no-interaction |
|
script: |
|
- npm run install-build-tools |
|
- npm run test |
|
- npm run rmdist |
|
- npm run "build:production" |
|
- composer test |
|
before_deploy: |
|
- export TRAVIS_PROJECT_SLUG="$(basename $TRAVIS_BUILD_DIR)" |
|
- curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar |
|
- chmod +x wp-cli.phar |
|
- sudo mv wp-cli.phar /usr/local/bin/wp |
|
- wp package install wp-cli/dist-archive-command |
|
- composer install --no-dev --optimize-autoloader |
|
- cd ../ |
|
- wp dist-archive $TRAVIS_PROJECT_SLUG $TRAVIS_BUILD_DIR/$TRAVIS_PROJECT_SLUG-$TRAVIS_TAG.zip |
|
- cd $TRAVIS_BUILD_DIR |
|
deploy: |
|
provider: releases |
|
skip_cleanup: true |
|
api_key: |
|
secure: $GITHUB_ACCESS_TOKEN |
|
file: pressbooks-aldine-$TRAVIS_TAG.zip |
|
on: |
|
tags: true |
|
repo: pressbooks/pressbooks-aldine
|
|
|