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

More CI setup

This commit is contained in:
Daniel Barber 2023-02-12 13:44:00 -06:00
parent e77583392d
commit a0b15d31a4
7 changed files with 15 additions and 15 deletions

View File

@ -19,14 +19,14 @@ jobs:
- browser-tools/install-chromedriver - browser-tools/install-chromedriver
- checkout - checkout
- run: - run:
name: Install hex name: Install dependencies
command: mix local.hex --force command: bin/ci_deps
- run: - run:
name: Install rebar name: Build assets
command: mix local.rebar --force command: bin/ci_assets
- run: - run:
name: Install mix deps name: Create database
command: mix deps.get command: bin/ci_db
- run: - run:
name: Run tests name: Run tests
command: mix test command: mix test

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Building assets" echo "Building assets"
cd assets pushd assets
yarn install yarn install
yarn run deploy yarn run deploy
cd .. popd

View File

@ -1,21 +1,21 @@
#!/usr/bin/env sh #!/usr/bin/env sh
echo "Removing previous build artifacts" echo "🧹 Removing previous build artifacts"
rm -rf deps _build rm -rf deps _build
echo "Installing dependencies and compiling" echo "🎁 Installing dependencies and compiling"
mix local.hex --force mix local.hex --force
mix deps.get mix deps.get
mix deps.compile mix deps.compile
mix compile mix compile
# Set up database # Set up database
echo "Setting up the database" echo "💾 Setting up the database"
mix ecto.create mix ecto.create
mix ecto.migrate mix ecto.migrate
# Grab JS dependencies from NPM # Grab JS dependencies from NPM
echo "Installing js dependencies" echo "🕸️ Installing js dependencies"
cd assets pushd assets
yarn install yarn install
cd .. popd

View File

@ -2,7 +2,7 @@
# The build passes as long as every test step returns with a non-zero exit code. # 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/ # See here for more: https://documentation.codeship.com/pro/builds-and-configuration/steps/
- name: build_assets - name: build_assets
command: bin/codeship_assets command: bin/ci_assets
service: app service: app
- name: run_mix_test - name: run_mix_test
command: /bin/bash -c 'mix ecto.create && mix test' command: /bin/bash -c 'mix ecto.create && mix test'