Skip to content
Snippets Groups Projects
Select Git revision
  • 56acde80dc580a2372723a15be8e6ad6c2b8812a
  • 5.4 default protected
  • dev/5.6
  • dev/5.5
  • 5.5
  • dev/5.4
  • dev/5.3_downgrade
  • feature/experimenttime_hack
  • 5.3 protected
  • _IntenSelect5.3
  • IntenSelect5.3
  • 4.27 protected
  • 4.26 protected
  • 5.0 protected
  • 4.22 protected
  • 4.21 protected
  • UE5.4-2024.1
  • UE5.4-2024.1-rc1
  • UE5.3-2023.1-rc3
  • UE5.3-2023.1-rc2
  • UE5.3-2023.1-rc
21 results

IA_MoveUp.uasset

Blame
  • gitlab-ci.yml 2.61 KiB
    variables:
      CI: "true"
      RAILS_ENV: test
    
    set_ruby_version:
      stage: build
      script:
        - echo "RUBY_VERSION=$(cat .ruby-version | sed 's/ruby-//g')" >> build.env
      artifacts:
        reports:
          dotenv: build.env
    
    rubocop:
      stage: test
      image: ruby:$RUBY_VERSION
      tags:
        - rails
      script:
        - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml"
        - gem install rubocop:1.65.1 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 --silent
        - rubocop
    
    erb_lint:
      stage: test
      image: ruby:$RUBY_VERSION
      tags:
        - rails
      script:
        - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/rubocop.yml" -O ".rubocop.yml"
        - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/erb-lint.yml" -O ".erb-lint.yml"
        - gem install rubocop:1.65.1 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 erb_lint:0.6.0 --silent
        - erblint --lint-all --allow-no-files true
    
    haml_lint:
      stage: test
      image: ruby:$RUBY_VERSION
      tags:
        - rails
      script:
        - wget --quiet "https://git-ce.rwth-aachen.de/noc-public/noc-netze-gitlab-cicd/-/raw/main/rails/haml-lint.yml" -O ".haml-lint.yml"
        - gem install rubocop:1.65.1 rubocop-minitest:0.35.1 rubocop-performance:1.21.1 rubocop-rails:2.25.1 haml_lint:0.58.0 --silent
        - haml-lint
    
    brakeman:
      stage: test
      image: ruby:$RUBY_VERSION
      tags:
        - rails
      script:
        - rm -f ./config/brakeman.yml ./config/brakeman.ignore
        - gem install brakeman --silent
        - brakeman -A --except UnscopedFind
    
    rails_test:
      stage: test
      image: ruby:$RUBY_VERSION
      tags:
        - rails
      services:
        - postgres:16.4
        - mysql:10.1
      variables:
        MYSQL_DATABASE: mysql
        MYSQL_USER: mysql
        MYSQL_PASSWORD: mysql
        MYSQL_URL: "mysql://mysql:mysql@mysql:3306"
        POSTGRES_DB: postgres
        POSTGRES_USER: postgres
        POSTGRES_PASSWORD: postgres
        POSTGRES_URL: "postgresql://postgres:postgres@postgres:5432"