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

Update Codeship setup script

This commit is contained in:
Daniel Barber 2018-01-19 10:50:40 -05:00
parent 9ce67a37fb
commit 8d8038b39b
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -1,16 +1,28 @@
# Cached install of Erlang #!/usr/bin/env sh
echo "================="
echo "Installing Erlang"
echo "-----------------"
source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/erlang.sh)" source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/erlang.sh)"
# Cached install of Elixir echo "================="
echo "Installing Elixir"
echo "-----------------"
source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/elixir.sh)" source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/languages/elixir.sh)"
# Install PhantomJS echo "===================="
echo "Installing PhantomJS"
echo "--------------------"
curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/phantomjs.sh | bash -s curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/phantomjs.sh | bash -s
# Install correct version of NodeJS echo "================="
echo "Installing NodeJS"
echo "-----------------"
nvm install $NODE_VERSION nvm install $NODE_VERSION
# Install Phoenix dependencies echo "==============================="
echo "Installing Phoenix dependencies"
echo "-------------------------------"
mix local.hex --force mix local.hex --force
mix local.rebar --force mix local.rebar --force
@ -18,14 +30,20 @@ export MIX_ENV=test
mix deps.get mix deps.get
mix deps.compile mix deps.compile
# Create and migrate database echo "==============================="
echo "Creating and migrating database"
echo "-------------------------------"
mix ecto.create mix ecto.create
mix ecto.migrate mix ecto.migrate
# Run PhantomJS in the background echo "================="
echo "Running PhantomJS"
echo "-----------------"
phantomjs --webdriver=0.0.0.0:8910 2>/dev/null & phantomjs --webdriver=0.0.0.0:8910 2>/dev/null &
# Install asset dependencies echo "====================="
echo "Installing NPM assets"
echo "---------------------"
cd assets cd assets
npm install npm install
cd .. cd ..