2018-04-10 01:40:36 +00:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2018-12-18 01:30:12 +00:00
|
|
|
- "10"
|
2020-06-29 06:12:14 +00:00
|
|
|
dist: bionic
|
|
|
|
group: dev
|
2019-08-24 03:46:21 +00:00
|
|
|
sudo: false
|
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
- postgresql
|
2018-04-10 01:44:37 +00:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
2018-04-10 01:50:35 +00:00
|
|
|
postgresql: "10"
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-08-24 03:46:21 +00:00
|
|
|
- autoconf
|
|
|
|
- bison
|
|
|
|
- build-essential
|
|
|
|
- ffmpeg
|
|
|
|
- file
|
|
|
|
- g++
|
|
|
|
- gcc
|
|
|
|
- imagemagick
|
|
|
|
- libffi-dev
|
2020-06-29 06:12:14 +00:00
|
|
|
- libgdbm5
|
2019-08-24 03:46:21 +00:00
|
|
|
- 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
|
2020-06-29 06:12:14 +00:00
|
|
|
- fonts-noto-color-emoji # required for emoji-picker-element + Chrome on Linux
|
2018-04-10 01:40:36 +00:00
|
|
|
before_install:
|
2019-08-24 03:46:21 +00:00
|
|
|
- psql -d template1 -U postgres -c "CREATE USER pinafore WITH PASSWORD 'pinafore' CREATEDB;"
|
2019-01-28 01:44:30 +00:00
|
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
|
|
|
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
2018-05-26 23:18:11 +00:00
|
|
|
- ./bin/setup-mastodon-in-travis.sh
|
2018-04-10 02:07:28 +00:00
|
|
|
before_script:
|
2019-01-28 01:44:30 +00:00
|
|
|
- yarn run lint
|
2018-04-14 17:06:19 +00:00
|
|
|
after_script:
|
2019-10-09 00:47:40 +00:00
|
|
|
- rm -f /home/travis/.rvm/gems/ruby-*/bin/posix-spawn-benchmark # file seems generated every time, breaks travis cache
|
2019-01-28 01:44:30 +00:00
|
|
|
script: travis_retry yarn run $COMMAND
|
2018-04-10 01:44:37 +00:00
|
|
|
env:
|
2018-04-10 01:50:35 +00:00
|
|
|
global:
|
2019-10-08 14:57:37 +00:00
|
|
|
- ESM_DISABLE_CACHE=1 # this cache causes travis to rebuild its cache every single time
|
|
|
|
- TERSER_DISABLE_CACHE=1 # ditto
|
2020-08-26 05:41:39 +00:00
|
|
|
- secure: "jyccYPBJQOHN6oX9VkeBSxKoWPACVn0rlNj8priGsrfWHcroqlPeVVWV2SXPBkwIFIgdjnVAA2q71mGrPJIstZERAaEKlq92+CPcpTDJp2vobHjrOvRtHd2rqrlU388c5CIjQXM1KA9MYenUOs/hmhbgUPrM8w2KsQGstSITGIhzySKzwreuz80tA0GC0fJ7jL3sCzlsBtWbL6WMAJdel4b+w3GiYdz5i7L6ZH0PzBapbMelr4QBKnTVo3oAE91Riis6lGmI4BUDpkFpslDUqtdPmgp7x/6VuF06dojinCCp/waPDPZRuPimFiqIVTn0lsyJRrP6t9MMixEatMvZrsHZd6XqXCP5P0bWeVEtwtnGZjHDPjSzjf+PigqwN6XQvVsTJBWXZX/qO/PpSKsRLwhynyfrKLQ54gDx+tEKfB3eNgKT4eWRLIZkk+IfTGasOsk92FLBrEHC89Xf+yLBsO/VBL6AZEFU6sS0Qk8Nv53/v8OelbcLFlWN5ws134MeJywSPtmbp8YkkSER+4auAmKNJr8JRu5A0MYz5hAM+kaIszkPv0uayDu7X+ygTe3Y+op/AOFULAX1mgGfsqcW4hYZyhJH21sduf0bxPNuJB0OnuAP05/HFoaU9rq/D/FYVylQs8O9R/NbWomi6bE6LmMQrVVyU5xu7Fo3DMyKBnw="
|
2018-04-11 01:39:56 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-05-27 16:27:29 +00:00
|
|
|
- env: BROWSER=chrome:headless COMMAND=test-browser-suite0
|
|
|
|
- env: BROWSER=chrome:headless COMMAND=test-browser-suite1
|
2018-11-20 08:01:23 +00:00
|
|
|
- env: COMMAND=test-unit
|
2020-03-29 18:54:40 +00:00
|
|
|
- env: COMMAND=deploy-all-travis
|
|
|
|
allow_failures:
|
|
|
|
- env: COMMAND=deploy-all-travis
|
2018-04-10 01:40:36 +00:00
|
|
|
branches:
|
|
|
|
only:
|
2019-08-24 03:46:21 +00:00
|
|
|
- master
|
2018-04-10 01:40:36 +00:00
|
|
|
cache:
|
2018-11-11 22:22:28 +00:00
|
|
|
yarn: true
|
|
|
|
bundler: true
|
2018-04-10 01:40:36 +00:00
|
|
|
directories:
|
2019-08-24 03:46:21 +00:00
|
|
|
- /home/travis/.rvm/
|