2018-04-10 02:40:36 +01:00
|
|
|
language: node_js
|
|
|
|
node_js:
|
2018-12-18 01:30:12 +00:00
|
|
|
- "10"
|
2019-11-18 00:37:04 +00:00
|
|
|
dist: xenial
|
2019-08-24 04:46:21 +01:00
|
|
|
sudo: false
|
|
|
|
services:
|
|
|
|
- redis-server
|
|
|
|
- postgresql
|
2018-04-10 02:44:37 +01:00
|
|
|
addons:
|
|
|
|
chrome: stable
|
2018-04-10 02:50:35 +01:00
|
|
|
postgresql: "10"
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-08-24 04:46:21 +01:00
|
|
|
- autoconf
|
|
|
|
- bison
|
|
|
|
- build-essential
|
|
|
|
- ffmpeg
|
|
|
|
- file
|
|
|
|
- g++
|
|
|
|
- gcc
|
|
|
|
- imagemagick
|
|
|
|
- libffi-dev
|
|
|
|
- libgdbm-dev
|
2019-11-18 00:37:04 +00:00
|
|
|
- libgdbm-dev
|
2019-08-24 04:46:21 +01:00
|
|
|
- libicu-dev
|
|
|
|
- libidn11-dev
|
|
|
|
- libncurses5-dev
|
|
|
|
- libpq-dev
|
|
|
|
- libprotobuf-dev
|
|
|
|
- libreadline6-dev
|
|
|
|
- libssl-dev
|
|
|
|
- libxml2-dev
|
|
|
|
- libxslt1-dev
|
|
|
|
- libyaml-dev
|
|
|
|
- pkg-config
|
|
|
|
- postgresql-10
|
|
|
|
- postgresql-client-10
|
|
|
|
- postgresql-contrib-10
|
|
|
|
- protobuf-compiler
|
|
|
|
- redis-server
|
|
|
|
- redis-tools
|
|
|
|
- zlib1g-dev
|
2018-04-10 02:40:36 +01:00
|
|
|
before_install:
|
2019-08-24 04:46:21 +01: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-27 00:18:11 +01:00
|
|
|
- ./bin/setup-mastodon-in-travis.sh
|
2018-04-10 03:07:28 +01:00
|
|
|
before_script:
|
2019-01-28 01:44:30 +00:00
|
|
|
- yarn run lint
|
2018-04-14 18:06:19 +01:00
|
|
|
after_script:
|
2019-10-09 01:47:40 +01: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 02:44:37 +01:00
|
|
|
env:
|
2018-04-10 02:50:35 +01:00
|
|
|
global:
|
2019-10-08 15:57:37 +01:00
|
|
|
- ESM_DISABLE_CACHE=1 # this cache causes travis to rebuild its cache every single time
|
|
|
|
- TERSER_DISABLE_CACHE=1 # ditto
|
2019-08-24 04:46:21 +01:00
|
|
|
- secure: "iR11lD+OAyTJdNoK67esDOrd34HKQboJo0DrVL4xqwoAwQGmNX7posBtcj0TOwVAdHfd5S80xlhWlMebrtHWR9oMtdcBXusWnehZVRB0WE89n8enkJCbAxn5uMpcEpKpDHTcfR/Gbxf2sw15dTy0PrW/ldiZXWf7wybJEBGbrEP7QI8oy3VHzmKpSyjRpN/hnSlgxskVnfIMKPp43D+705Ka7aMJNTWZ5dAdKdIjQWX6j6jlqx6Vl+qIq7td3DTZA9A5ft8HxaWC27F1bbd52PdRY2h8Ii3Ps+n8Q8uZK1KJPp9t3pPk+PmYINu2715ArukRk73kahnFadBQLhytn95FLiyKOLj+ajBNo+o3KIQDs3qRj8gkXpkJpuLAPgwABOEVWuLh9y+oa33IDYVzyESRVtXqbbwgziYVjNQCozP1Nt9+Wyh4YHfdOjEEMdlVlkwlyzPfaLAqVBusEphnaF/vx7itdVvxOMQYNcSRoBrAgciN4ng0GZHi5P85DMXnNV41r+d3JK5JEYZD/gpSja5cPUlpPlkXsKiElG3fEoO2D/Uc8rR9Cu84XiJiJQjP91QuWagfdhgqM4YOndt2YukiGzRzDMjTx1BzSW4S11RQGWzZrv06zmDLXTlnUAMEm1/Exo4L6VfgRvyFmgM0LAT+IceVEHbOKC/Hnd8Y3mo="
|
|
|
|
- secure: "E9t4zTDdPX9I4XgeC5zJEy+mIM2s0MFPpNfJ/mc5q/JX+gQkHSNkE/32NKgfSce85v33kWWxiPK4qorgX4B+v/MkK6kVQ2HSC7p4XttlQucvSICh/hYSM21WnH7g7DRNj3mDWHWEAwQuquaxVLfGWL60M/svnKG9MOoewos9iDj9AvANm6J09DjRmLuqmDV+VL+cV6ZL/SvUZ5Ervkgs/s3nXHEMse9rKMH/6/KncTGGPRolqyx86XSU6/XtRKX2+bEdiOaIxUYYvjcHJZTKxpSelPpEHjoUfWCM2CG3WyjtYkLF/1Romh8Ft4pnz+iiTzN3eWaT2ralOFvW30oB3cKbDcFb6LDGfXYw7v+XIORc79Ehcb2XlweEymf7fPhbx+7bkCfudRCMLw6OUWXoh66BBjOh2gcQYQ2+3U8KV7YKl/ZQHYb722wE6rN0YvJ6zGriWomDuV1smdyu4teo4lY2oVUUUGflyz2HWxnjVbqWizw4k69TNIcEEQ8j8YgdXMUxNMUOJoCu0c3Lnd8J1BeU/7LX87c54/oCMjEivnsENGIC/EUgAoXDi3L0y7HzHgaDs112p5zjspJsSSON/T4E2uyyb2RpjBY4Ghl43a/RDAlv1gUFtvbanphg3PEGMfG7B2gxk9Z/v5J9pUP/NtsspmT2MvTHZXtH/44XPEU="
|
2018-04-11 02:39:56 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
2018-05-27 17:27:29 +01: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 19:54:40 +01:00
|
|
|
- env: COMMAND=deploy-all-travis
|
|
|
|
allow_failures:
|
|
|
|
- env: COMMAND=deploy-all-travis
|
2018-04-10 02:40:36 +01:00
|
|
|
branches:
|
|
|
|
only:
|
2019-08-24 04:46:21 +01:00
|
|
|
- master
|
2018-04-10 02:40:36 +01:00
|
|
|
cache:
|
2018-11-11 22:22:28 +00:00
|
|
|
yarn: true
|
|
|
|
bundler: true
|
2018-04-10 02:40:36 +01:00
|
|
|
directories:
|
2019-08-24 04:46:21 +01:00
|
|
|
- /home/travis/.rvm/
|