Fix CI script and improve terminal artwork

next
Sayan Nandan 3 years ago
parent bb4637c1e3
commit 6b47279b1b

@ -67,15 +67,17 @@ jobs:
- name: Run Tests - name: Run Tests
run: | run: |
cargo run -p skyd & cargo run -p skyd -- --nosave --noart &
cargo test --verbose -- --test-threads=1 cargo test --verbose -- --test-threads=1
sudo pkill skyd
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
if: env.IS_MD_FILE == 'false' && runner.os != 'Windows' if: env.IS_MD_FILE == 'false' && runner.os != 'Windows'
- name: Run Tests (Windows) - name: Run Tests (Windows)
run: | run: |
cargo run -p skyd -- --nosave & cargo build -p skyd
START /B target\debug\skyd.exe --nosave --noart
cargo test --verbose -- --test-threads=1 cargo test --verbose -- --test-threads=1
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1

@ -96,16 +96,18 @@ jobs:
- name: Run Tests - name: Run Tests
run: | run: |
cargo run -p skyd -- --nosave & cargo run -p skyd --target ${{ matrix.rust }} -- --nosave --noart &
cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1 cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1
sudo pkill skyd
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
if: env.IS_MD_FILE == 'false' && runner.os != 'Windows' if: env.IS_MD_FILE == 'false' && runner.os != 'Windows'
- name: Run Tests (Windows) - name: Run Tests (Windows)
run: | run: |
cargo run -p skyd -- --nosave & cargo build -p skyd --target ${{ matrix.rust }}
cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1 START /B target\debug\skyd.exe --nosave --noart
cargo test --target ${{ matrix.rust }} --verbose -- --test-threads=1
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
shell: cmd shell: cmd
@ -197,16 +199,18 @@ jobs:
- name: Run Tests - name: Run Tests
run: | run: |
cargo run -p skyd -- --nosave & cargo run -p skyd --target ${{ matrix.rust }} -- --nosave --noart &
cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1 cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1
sudo pkill skyd
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
if: env.IS_MD_FILE == 'false' && runner.os == 'Linux' if: env.IS_MD_FILE == 'false' && runner.os == 'Linux'
- name: Run Tests (Windows) - name: Run Tests (Windows)
run: | run: |
cargo run -p skyd -- --nosave & cargo build -p skyd --target ${{ matrix.rust }}
cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1 START /B target\debug\skyd.exe --nosave --noart
cargo test --target ${{ matrix.rust }} --verbose -- --test-threads=1
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
shell: cmd shell: cmd
@ -282,7 +286,7 @@ jobs:
restore-keys: | restore-keys: |
${{ matrix.rust }}-target- ${{ matrix.rust }}-target-
if: env.IS_MD_FILE == 'false' if: env.IS_MD_FILE == 'false'
- name: Install MUSL tools - name: Install MUSL tools
run: sudo apt-get update && sudo apt-get install musl-tools -y run: sudo apt-get update && sudo apt-get install musl-tools -y
if: runner.os == 'Linux' if: runner.os == 'Linux'
@ -295,8 +299,9 @@ jobs:
- name: Run Tests - name: Run Tests
run: | run: |
cargo run -p skyd -- --nosave & cargo run -p skyd --target ${{ matrix.rust }} -- --nosave --noart &
cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1 cargo test --verbose --target ${{ matrix.rust }} -- --test-threads=1
sudo pkill skyd
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
if: env.IS_MD_FILE == 'false' && runner.os == 'Linux' if: env.IS_MD_FILE == 'false' && runner.os == 'Linux'

@ -62,9 +62,9 @@ use jemallocator::Jemalloc;
static GLOBAL: Jemalloc = Jemalloc; static GLOBAL: Jemalloc = Jemalloc;
/// The version text /// The version text
static MSG: &'static str = "Skytable v0.5.2 | https://github.com/skytable/skytable\n"; static MSG: &'static str = "Skytable v0.5.2 | https://github.com/skytable/skytable";
/// The terminal art for `!noart` configurations /// The terminal art for `!noart` configurations
static TEXT: &'static str = "███████ ██  ██ ██  ██ ████████  █████  ██████  ██  ███████ \n████ ██   ██  ██     ██    ██   ██ ██   ██ ██  ██      \n████████████  ████   ██  ███████ ██████  ██  █████  \n██████  ██   ██  ██   ██ ██   ██ ██  ██     \n█████████ ██  ██  ██  ██  ██ ██████  ███████ ███████ \n \n "; static TEXT: &'static str = "\n███████ ██  ██ ██  ██ ████████  █████  ██████  ██  ███████ \n████ ██   ██  ██     ██    ██   ██ ██   ██ ██  ██      \n████████████  ████   ██  ███████ ██████  ██  █████  \n██████  ██   ██  ██   ██ ██   ██ ██  ██     \n█████████ ██  ██  ██  ██  ██ ██████  ███████ ███████ \n ";
fn main() { fn main() {
Builder::new() Builder::new()

Loading…
Cancel
Save