mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
More CI setup
This commit is contained in:
parent
e77583392d
commit
a0b15d31a4
@ -19,14 +19,14 @@ jobs:
|
||||
- browser-tools/install-chromedriver
|
||||
- checkout
|
||||
- run:
|
||||
name: Install hex
|
||||
command: mix local.hex --force
|
||||
name: Install dependencies
|
||||
command: bin/ci_deps
|
||||
- run:
|
||||
name: Install rebar
|
||||
command: mix local.rebar --force
|
||||
name: Build assets
|
||||
command: bin/ci_assets
|
||||
- run:
|
||||
name: Install mix deps
|
||||
command: mix deps.get
|
||||
name: Create database
|
||||
command: bin/ci_db
|
||||
- run:
|
||||
name: Run tests
|
||||
command: mix test
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "Building assets"
|
||||
cd assets
|
||||
pushd assets
|
||||
yarn install
|
||||
yarn run deploy
|
||||
cd ..
|
||||
popd
|
||||
12
bin/setup
12
bin/setup
@ -1,21 +1,21 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo "Removing previous build artifacts"
|
||||
echo "🧹 Removing previous build artifacts"
|
||||
rm -rf deps _build
|
||||
|
||||
echo "Installing dependencies and compiling"
|
||||
echo "🎁 Installing dependencies and compiling"
|
||||
mix local.hex --force
|
||||
mix deps.get
|
||||
mix deps.compile
|
||||
mix compile
|
||||
|
||||
# Set up database
|
||||
echo "Setting up the database"
|
||||
echo "💾 Setting up the database"
|
||||
mix ecto.create
|
||||
mix ecto.migrate
|
||||
|
||||
# Grab JS dependencies from NPM
|
||||
echo "Installing js dependencies"
|
||||
cd assets
|
||||
echo "🕸️ Installing js dependencies"
|
||||
pushd assets
|
||||
yarn install
|
||||
cd ..
|
||||
popd
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
# The build passes as long as every test step returns with a non-zero exit code.
|
||||
# See here for more: https://documentation.codeship.com/pro/builds-and-configuration/steps/
|
||||
- name: build_assets
|
||||
command: bin/codeship_assets
|
||||
command: bin/ci_assets
|
||||
service: app
|
||||
- name: run_mix_test
|
||||
command: /bin/bash -c 'mix ecto.create && mix test'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user