Pinafore-Web-Client-Frontend/.travis.yml

74 lines
2.4 KiB
YAML

language: node_js
node_js:
- "10"
dist: bionic
group: dev
sudo: false
services:
- redis-server
- postgresql
addons:
chrome: stable
postgresql: "10"
apt:
packages:
- autoconf
- bison
- build-essential
- ffmpeg
- file
- g++
- gcc
- imagemagick
- libffi-dev
- libgdbm5
- libicu-dev
- libidn11-dev
- libncurses5-dev
- libpq-dev
- libprotobuf-dev
- libreadline6-dev
- libssl-dev
- libxml2-dev
- libxslt1-dev
- libyaml-dev
- pkg-config
- postgresql-client-10
- postgresql-contrib-10
- protobuf-compiler
- redis-server
- redis-tools
- zlib1g-dev
- fonts-noto-color-emoji # required for emoji-picker-element + Chrome on Linux
before_install:
- psql -d template1 -U postgres -c "CREATE USER pinafore WITH PASSWORD 'pinafore' CREATEDB;"
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"
- ./bin/setup-mastodon-in-travis.sh
before_script:
- yarn run lint
after_script:
- rm -f /home/travis/.rvm/gems/ruby-*/bin/posix-spawn-benchmark # file seems generated every time, breaks travis cache
script: travis_retry yarn run $COMMAND
env:
global:
- ESM_DISABLE_CACHE=1 # this cache causes travis to rebuild its cache every single time
- TERSER_DISABLE_CACHE=1 # ditto
- secure: "jyccYPBJQOHN6oX9VkeBSxKoWPACVn0rlNj8priGsrfWHcroqlPeVVWV2SXPBkwIFIgdjnVAA2q71mGrPJIstZERAaEKlq92+CPcpTDJp2vobHjrOvRtHd2rqrlU388c5CIjQXM1KA9MYenUOs/hmhbgUPrM8w2KsQGstSITGIhzySKzwreuz80tA0GC0fJ7jL3sCzlsBtWbL6WMAJdel4b+w3GiYdz5i7L6ZH0PzBapbMelr4QBKnTVo3oAE91Riis6lGmI4BUDpkFpslDUqtdPmgp7x/6VuF06dojinCCp/waPDPZRuPimFiqIVTn0lsyJRrP6t9MMixEatMvZrsHZd6XqXCP5P0bWeVEtwtnGZjHDPjSzjf+PigqwN6XQvVsTJBWXZX/qO/PpSKsRLwhynyfrKLQ54gDx+tEKfB3eNgKT4eWRLIZkk+IfTGasOsk92FLBrEHC89Xf+yLBsO/VBL6AZEFU6sS0Qk8Nv53/v8OelbcLFlWN5ws134MeJywSPtmbp8YkkSER+4auAmKNJr8JRu5A0MYz5hAM+kaIszkPv0uayDu7X+ygTe3Y+op/AOFULAX1mgGfsqcW4hYZyhJH21sduf0bxPNuJB0OnuAP05/HFoaU9rq/D/FYVylQs8O9R/NbWomi6bE6LmMQrVVyU5xu7Fo3DMyKBnw="
matrix:
include:
- env: BROWSER=chrome:headless COMMAND=test-browser-suite0
- env: BROWSER=chrome:headless COMMAND=test-browser-suite1
- env: COMMAND=test-unit
- env: COMMAND=deploy-all-travis
allow_failures:
- env: COMMAND=deploy-all-travis
branches:
only:
- master
cache:
yarn: true
bundler: true
directories:
- /home/travis/.rvm/