build redis from source in travis (#602)

This commit is contained in:
Nolan Lawson 2018-11-03 22:13:57 -07:00
parent e11738a711
commit ee942df1e3
2 changed files with 35 additions and 25 deletions

View file

@ -2,42 +2,40 @@ language: node_js
node_js: node_js:
- "8" - "8"
dist: trusty # needed for chrome headless dist: trusty # needed for chrome headless
sudo: required # needed for chrome headless sudo: required # needed for various sudo operations
addons: addons:
chrome: stable chrome: stable
postgresql: "10" postgresql: "10"
apt: apt:
packages: packages:
- postgresql-10
- postgresql-client-10
- postgresql-contrib-10
# the following are mastodon dependencies
- imagemagick
- libpq-dev
- libxml2-dev
- libxslt1-dev
- file
- g++
- libprotobuf-dev
- protobuf-compiler
- pkg-config nodejs
- gcc
- autoconf - autoconf
- bison - bison
- build-essential - build-essential
- libssl-dev - file
- libyaml-dev - g++
- libreadline6-dev - gcc
- zlib1g-dev - imagemagick
- libncurses5-dev
- libffi-dev - libffi-dev
- libgdbm3
- libgdbm-dev - libgdbm-dev
- redis-tools - libgdbm3
- libidn11-dev
- libicu-dev - libicu-dev
services: - libidn11-dev
- redis-server - libncurses5-dev
- libpq-dev
- libprotobuf-dev
- libreadline6-dev
- libssl-dev
- libxml2-dev
- libxslt1-dev
- libyaml-dev
- pkg-config nodejs
- postgresql-10
- postgresql-client-10
- postgresql-contrib-10
- protobuf-compiler
- redis-tools
- tcl # required to build redis from source
- zlib1g-dev
before_install: before_install:
- npm install -g npm@6 - npm install -g npm@6
- npm install -g greenkeeper-lockfile@1 - npm install -g greenkeeper-lockfile@1

View file

@ -6,13 +6,25 @@ if [[ "$COMMAND" = deploy-dev-travis ]]; then
exit 0 # no need to setup mastodon in this case exit 0 # no need to setup mastodon in this case
fi fi
# install ruby
source "$HOME/.rvm/scripts/rvm" source "$HOME/.rvm/scripts/rvm"
rvm install 2.5.1 rvm install 2.5.1
rvm use 2.5.1 rvm use 2.5.1
# build redis from source until this is fixed: https://git.io/fxjkb
curl -O http://download.redis.io/redis-stable.tar.gz
tar -xzf redis-stable.tar.gz
cd redis-stable
make
sudo make install
redis-server --daemonize yes
# install ffmpeg from PPA because it's not in Trusty
sudo -E add-apt-repository -y ppa:mc3man/trusty-media sudo -E add-apt-repository -y ppa:mc3man/trusty-media
sudo -E apt-get update sudo -E apt-get update
sudo -E apt-get install -y ffmpeg sudo -E apt-get install -y ffmpeg
# check versions
ruby --version ruby --version
node --version node --version
npm --version npm --version