1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/bin/codeship_setup

32 lines
759 B
Bash
Executable File

#!/usr/bin/env bash
echo "Installing Erlang"
source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/erlang.sh)"
echo "Installing Elixir"
source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/elixir.sh)"
echo "Installing PhantomJS"
curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/phantomjs.sh | bash -s
echo "Installing NodeJS"
nvm install $NODE_VERSION
echo "Installing Phoenix dependencies"
mix local.hex --force
mix local.rebar --force
export MIX_ENV=test
mix deps.get
mix deps.compile
echo "Creating and migrating database"
mix ecto.create
mix ecto.migrate
echo "Building assets"
cd assets
npm install
npm run build
cd ..