Skip to content
Snippets Groups Projects
Select Git revision
  • a4ddf570c9e1fc41be356a60d81563abaeb91563
  • master default protected
  • v1.3.4
  • v1.3.3
  • v1.3.2
  • v1.3.1
  • v1.3.0
  • v1.2.5
  • v1.2.4
  • v1.2.3
  • v1.2.2
  • v1.2.1
  • v1.2.0
  • v1.1.0
  • v1.0.3
  • v1.0.2
  • v1.0.1
  • v1.0.0
18 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 927 B
    variables:
      NIXPKGS_ALLOW_UNFREE: "1"
      NIXPKGS_ALLOW_INSECURE: "1"
      GIT_DEPTH: 10
      GIT_SUBMODULE_STRATEGY: normal
      GIT_SUBMODULE_DEPTH: 1
    
    
    stages:
      - test
      - release
    
    before_script:
      - git config --global user.email "${GITLAB_USER_EMAIL}"
      - git config --global user.name "${GITLAB_USER_NAME:-"Gitlab CI"}"
      - git config --global credential.helper '!f() { echo "username=gitlab-ci-token"; echo "password=${CI_JOB_TOKEN}"; }; f'
      - git config --global pull.rebase true
      - git config --global http.sslVerify "false"
    
    
    after_script:
      - nix develop .#gitlab --command clean-up
    
    tests:
      stage: test
      tags:
        - nixos-gen3
      script:
        - nix develop .#gitlab --command run-ci-tests
      artifacts:
        paths:
          - last-phpunit-result.xml
    
    release:
      stage: release
      tags:
        - nixos-gen3
      script:
        - nix develop .#gitlab --command release
      when: on_success
      rules:
        - if: $CI_COMMIT_BRANCH == "master"