1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/bin/codeship_setup
Dan Barber ad8d45ec8d
Fix brunch config
Also remove those lines from the Codeship setup file. I don't like them!
2018-01-19 11:26:17 -05:00

34 lines
826 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 "Running PhantomJS"
phantomjs --webdriver=0.0.0.0:8910 2>/dev/null &
echo "Installing NPM assets"
cd assets
npm install
cd ..