add dedicated script for setting up mastodon deps (#336)

This commit is contained in:
Nolan Lawson 2018-05-26 16:18:11 -07:00 committed by GitHub
parent b95d3eb0e6
commit ed5542781a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 11 deletions

View file

@ -40,18 +40,8 @@ services:
- redis-server - redis-server
before_install: before_install:
- npm install -g npm@5 - npm install -g npm@5
- rvm install 2.5.0
- rvm use 2.5.0
- sudo -E add-apt-repository -y ppa:mc3man/trusty-media
- sudo -E apt-get update
- sudo -E apt-get install -y ffmpeg
- ruby --version
- node --version
- npm --version
- postgres --version
- redis-server --version
- ffmpeg -version
- npm install -g greenkeeper-lockfile@1 - npm install -g greenkeeper-lockfile@1
- ./bin/setup-mastodon-in-travis.sh
before_script: before_script:
- npm run lint - npm run lint
- greenkeeper-lockfile-update - greenkeeper-lockfile-update

20
bin/setup-mastodon-in-travis.sh Executable file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -e
set -x
if [[ "$COMMAND" = deploy-dev-travis ]]; then
exit 0 # no need to setup mastodon in this case
fi
rvm install 2.5.0
rvm use 2.5.0
sudo -E add-apt-repository -y ppa:mc3man/trusty-media
sudo -E apt-get update
sudo -E apt-get install -y ffmpeg
ruby --version
node --version
npm --version
postgres --version
redis-server --version
ffmpeg -version