Skip to content
Snippets Groups Projects
Select Git revision
  • 8d49ffea20934e03ae8f871e17ddbecbb5b4320e
  • master default protected
  • 1.31
  • 4.24.3
  • 4.24.2
  • 4.24.1
  • 4.24.0
  • 4.23.6
  • 4.23.5
  • 4.23.4
  • 4.23.3
  • 4.23.2
  • 4.23.1
  • 4.23.0
  • 4.22.3
  • 4.22.2
  • 4.22.1
  • 4.22.0
  • 4.21.0
  • 4.20.1
  • 4.20.0
  • 4.19.0
  • 4.18.0
23 results

Monster.Constraints.IsArray.html

Blame
  • run-ci-tests.nix 930 B
    {
      pkgs,
      lib,
      ...
    }: pkgs.writeShellScriptBin "run-ci-tests" ''
        echo "run ci tests"
    
        if [ -z "''${CI_JOB_TOKEN}" ]; then
           echo "You are in a CI environment, this shell is not intended for CI, but for local development"
           exit 1
        fi
        
        set -x
        ${pkgs.coreutils}/bin/printenv
    
        cd ''${CI_PROJECT_DIR} || exit 1
        
        echo "This script will run tests in the project working directory: ''${CI_PROJECT_DIR}"
        echo "The command is executed in the current working directory and not in a nix derivation."
    
        TEST_CASES_PATH="''${CI_PROJECT_DIR}/test/cases/"
        
        if ! ${pkgs.corepack}/bin/pnpm install
        then
           echo "Failed to install dependencies"
           exit 1
        fi
    
        if ! ${pkgs.nodePackages.mocha}/bin/mocha --colors --jobs 1 --bail --recursive ''${TEST_CASES_PATH}
        then
           echo "Tests failed, check your JS!"
           exit 1
        fi
    
        echo "Tests passed!"
    
      ''