2018-05-27 00:18:11 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-11-20 08:01:23 +00:00
|
|
|
if [[ "$COMMAND" = deploy-all-travis || "$COMMAND" = test-unit ]]; then
|
2018-05-27 00:18:11 +01:00
|
|
|
exit 0 # no need to setup mastodon in this case
|
|
|
|
fi
|
|
|
|
|
2018-11-04 05:13:57 +00:00
|
|
|
# install ruby
|
2018-05-28 16:26:17 +01:00
|
|
|
source "$HOME/.rvm/scripts/rvm"
|
2019-05-05 23:02:14 +01:00
|
|
|
rvm install 2.6.1
|
|
|
|
rvm use 2.6.1
|
2018-05-28 16:26:17 +01:00
|
|
|
|
2018-11-04 05:13:57 +00:00
|
|
|
# check versions
|
2018-05-27 00:18:11 +01:00
|
|
|
ruby --version
|
|
|
|
node --version
|
2019-01-28 01:44:30 +00:00
|
|
|
yarn --version
|
2018-05-27 00:18:11 +01:00
|
|
|
postgres --version
|
|
|
|
redis-server --version
|
|
|
|
ffmpeg -version
|