From 536f406cb838a54f6e3aa206ee15cb1825a5ac9b Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Tue, 21 Apr 2020 21:27:49 -0700 Subject: [PATCH] Clean up CI a bit --- .github/scripts/release.sh | 41 -------------------------------------- .github/workflows/main.yml | 9 ++------- 2 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 .github/scripts/release.sh diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh deleted file mode 100644 index f50a3a1ef..000000000 --- a/.github/scripts/release.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash -set -xe -# This script scp'd to the build host and executed to create a new release. - -orig_dir=`pwd` - -# Some preliminary housekeeping -rm -rf /tmp/cloudfire -mkdir -p /tmp/cloudfire -cd /tmp/cloudfire -mv ~/cloudfire_web.tar . -tar -xf cloudfire_web.tar - -# Start build -echo 'Building release for system:' -uname -a - -# Ensure MIX_ENV is prod throughout the build -export MIX_ENV=prod - -# Set terminal to UTF-8 -export LC_CTYPE="en_US.UTF-8" - -# Set required env vars for the app to boot. These will not be used. -export DATABASE_URL="ecto://dummy:dummy@dummy/dummy" -export SECRET_KEY_BASE="dummy" - -# Fetch dependencies, compile, compile static assets -mix local.hex --force -mix local.rebar --force -mix deps.get --only prod -mix compile -cd assets -npm install -cd .. -npm run deploy --prefix ./assets -mix phx.digest -mix release - -# XXX: Append version number to release tarball -tar -zcf $HOME/release.tar.gz _build diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1dfe005aa..9d330acaa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,15 +32,10 @@ jobs: elixir-version: 1.10.2 otp-version: 22.3.2 - name: Install Dependencies - run: | - cd cloudfire_umbrella/ - mix deps.get --only test + run: mix deps.get --only test - name: Setup Database run: | - cd cloudfire_umbrella mix ecto.create mix ecto.migrate - name: Run Tests - run: | - cd cloudfire_umbrella/ - mix test + run: mix test