chore: update travis to ubuntu bionic (#1426)
* chore: update travis to ubuntu xenial/bionic * fix apt packages * try again * fixup * fixup * fixup * fixup * fixup * simplify to test * fixup * fixup * add stuff back * add chrome * fix config * fixup * fix build script
This commit is contained in:
parent
da668c5330
commit
b7c97118e2
81
.travis.yml
81
.travis.yml
|
@ -1,50 +1,50 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "10"
|
- "10"
|
||||||
dist: trusty # needed for chrome headless
|
dist: bionic
|
||||||
sudo: required # needed for various sudo operations
|
sudo: false
|
||||||
|
services:
|
||||||
|
- redis-server
|
||||||
|
- postgresql
|
||||||
addons:
|
addons:
|
||||||
chrome: stable
|
chrome: stable
|
||||||
postgresql: "10"
|
postgresql: "10"
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- autoconf
|
- autoconf
|
||||||
- bison
|
- bison
|
||||||
- build-essential
|
- build-essential
|
||||||
- file
|
- ffmpeg
|
||||||
- g++
|
- file
|
||||||
- gcc
|
- g++
|
||||||
- imagemagick
|
- gcc
|
||||||
- libffi-dev
|
- imagemagick
|
||||||
- libgdbm-dev
|
- libffi-dev
|
||||||
- libgdbm3
|
- libgdbm-dev
|
||||||
- libicu-dev
|
- libgdbm5
|
||||||
- libidn11-dev
|
- libicu-dev
|
||||||
- libncurses5-dev
|
- libidn11-dev
|
||||||
- libpq-dev
|
- libncurses5-dev
|
||||||
- libprotobuf-dev
|
- libpq-dev
|
||||||
- libreadline6-dev
|
- libprotobuf-dev
|
||||||
- libssl-dev
|
- libreadline6-dev
|
||||||
- libxml2-dev
|
- libssl-dev
|
||||||
- libxslt1-dev
|
- libxml2-dev
|
||||||
- libyaml-dev
|
- libxslt1-dev
|
||||||
- pkg-config nodejs
|
- libyaml-dev
|
||||||
- postgresql-10
|
- pkg-config
|
||||||
- postgresql-client-10
|
- postgresql-10
|
||||||
- postgresql-contrib-10
|
- postgresql-client-10
|
||||||
- protobuf-compiler
|
- postgresql-contrib-10
|
||||||
- redis-server
|
- protobuf-compiler
|
||||||
- redis-tools
|
- redis-server
|
||||||
- zlib1g-dev
|
- redis-tools
|
||||||
|
- zlib1g-dev
|
||||||
before_install:
|
before_install:
|
||||||
- npm install -g greenkeeper-lockfile@1
|
- npm install -g greenkeeper-lockfile@1
|
||||||
# install yarn
|
- psql -d template1 -U postgres -c "CREATE USER pinafore WITH PASSWORD 'pinafore' CREATEDB;"
|
||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||||
# install ffmpeg
|
|
||||||
- sudo add-apt-repository -y ppa:mc3man/trusty-media
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get install -y ffmpeg
|
|
||||||
- ./bin/setup-mastodon-in-travis.sh
|
- ./bin/setup-mastodon-in-travis.sh
|
||||||
before_script:
|
before_script:
|
||||||
- yarn run lint
|
- yarn run lint
|
||||||
|
@ -54,9 +54,8 @@ after_script:
|
||||||
script: travis_retry yarn run $COMMAND
|
script: travis_retry yarn run $COMMAND
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- PGPORT=5433
|
- secure: "iR11lD+OAyTJdNoK67esDOrd34HKQboJo0DrVL4xqwoAwQGmNX7posBtcj0TOwVAdHfd5S80xlhWlMebrtHWR9oMtdcBXusWnehZVRB0WE89n8enkJCbAxn5uMpcEpKpDHTcfR/Gbxf2sw15dTy0PrW/ldiZXWf7wybJEBGbrEP7QI8oy3VHzmKpSyjRpN/hnSlgxskVnfIMKPp43D+705Ka7aMJNTWZ5dAdKdIjQWX6j6jlqx6Vl+qIq7td3DTZA9A5ft8HxaWC27F1bbd52PdRY2h8Ii3Ps+n8Q8uZK1KJPp9t3pPk+PmYINu2715ArukRk73kahnFadBQLhytn95FLiyKOLj+ajBNo+o3KIQDs3qRj8gkXpkJpuLAPgwABOEV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2oVUUUGflyz2HWxnjVbqWizw4k69TNIcEEQ8j8YgdXMUxNMUOJoCu0c3Lnd8J1BeU/7LX87c54/oCMjEivnsENGIC/EUgAoXDi3L0y7HzHgaDs112p5zjspJsSSON/T4E2uyyb2RpjBY4Ghl43a/RDAlv1gUFtvbanphg3PEGMfG7B2gxk9Z/v5J9pUP/NtsspmT2MvTHZXtH/44XPEU="
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: BROWSER=chrome:headless COMMAND=test-browser-suite0
|
- env: BROWSER=chrome:headless COMMAND=test-browser-suite0
|
||||||
|
@ -67,10 +66,10 @@ matrix:
|
||||||
- env: COMMAND=deploy-all-travis
|
- env: COMMAND=deploy-all-travis
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- /^greenkeeper/.*$/
|
- /^greenkeeper/.*$/
|
||||||
cache:
|
cache:
|
||||||
yarn: true
|
yarn: true
|
||||||
bundler: true
|
bundler: true
|
||||||
directories:
|
directories:
|
||||||
- /home/travis/.rvm/
|
- /home/travis/.rvm/
|
||||||
|
|
|
@ -11,13 +11,6 @@ source "$HOME/.rvm/scripts/rvm"
|
||||||
rvm install 2.6.1
|
rvm install 2.6.1
|
||||||
rvm use 2.6.1
|
rvm use 2.6.1
|
||||||
|
|
||||||
# fix for redis IPv6 issue
|
|
||||||
# https://travis-ci.community/t/trusty-environment-redis-server-not-starting-with-redis-tools-installed/650/2
|
|
||||||
sudo sed -e 's/^bind.*/bind 127.0.0.1/' /etc/redis/redis.conf > redis.conf
|
|
||||||
sudo mv redis.conf /etc/redis
|
|
||||||
sudo service redis-server start
|
|
||||||
echo PING | nc localhost 6379 # check redis running
|
|
||||||
|
|
||||||
# check versions
|
# check versions
|
||||||
ruby --version
|
ruby --version
|
||||||
node --version
|
node --version
|
||||||
|
|
Loading…
Reference in New Issue