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 test - npm run build - 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: bbbOG0wczvrmXUuMXYnL8kp4w1tvCNsXha3L7kGmCY144Gh+rXUOG63xxdSP5dRj5tk1jKIJ6Hc7xg614qODxuiyBclIDOIUXT+DEIUhCNu5+7XjuqjIce6077ipFOB4sQmcWEzqZx9RIl18sjkDp4h5WaDAbQQOfsUylXw+/uSBALJsvvLG/38L+LrYg7bh77IKYd94CKexsxBjQ5Y0C82yC5BoTH0xYfGj2hSmB/mGXyrn3UTHubQmQpHjoXzC78TL21BkzfaNrVeNHEgSbBpkg1HRarq9CrrSTnP4IRLfm38YPQV6WQatMPT1FWTXBhfxjIWmboCHOs/79NdZlQiY2Van44v66E1NkFcspVpPs/n6bDXm1PZxwy+rvkTpyl6olbaKnPpWRzbQCJ9MCxGur4lC54M8DpjJ10kvoP3kKNbzU73zkYNkoJH10yljoMdu2zQO86iLYqHV/t+rW0L/MDAX9bbnM5d5dLag83b8kaUFN3wtcpMjnh2YI4k+ulx2IzqwReqLUksE7KtSB/O2x4XXW8a4HU1DWJEHjBOFklFHFSsYhkr58RGvjusiCGB+dPKAEJkdaEXLHMpYcLcsg6YA5wszJouzcQHZkz6SYnM+iWJopOTRQiY7PK6JMPbIrxk7a7vXYPjoUWqc2JkeY6I7eux8Xio/bFCbnV4= file: pressbooks-aldine-$TRAVIS_TAG.zip on: tags: true repo: pressbooks/pressbooks-aldine