.gitlab-ci.yml 2.08 KB
Newer Older
1
stages:
2
  - build
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  - test

integration.test:
  stage: test
  script:
    - nix-shell .integration.nix --run "argotk.hs helloworld"
  artifacts:
    paths:
      - _output/cmd_err.log
      - _output/cmd_out.log
      - _output/daemon_out.log
      - _output/daemon_out.log
      - _output/nrm.log
      - _output/time.log
      - _output/.argo_nodeos_config_exit_message
    expire_in: 1 week
  except:
    - /^wip\/.*/
    - /^WIP\/.*/
  tags:
    - integration
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88


.nix-build:
  stage: build
  tags:
    - integration

.nix-integration:
  stage: test
  artifacts:
    paths:
      - _output/cmd_err.log
      - _output/cmd_out.log
      - _output/daemon_out.log
      - _output/daemon_out.log
      - _output/nrm.log
      - _output/.argo_nodeos_config_exit_message
    expire_in: 1 week
  except:
    - /^wip\/.*/
    - /^WIP\/.*/
  tags:
    - integration

containers.build:
  extends: .nix-build
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
    - XDG_CACHE_HOME=$CACHE nix-build .nix -A containers
    - rm -rf $CACHE

libnrm.build:
  extends: .nix-build
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
    - XDG_CACHE_HOME=$CACHE nix-build .nix -A libnrm
    - rm -rf $CACHE

nrm.build:
  extends: .nix-build
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
    - XDG_CACHE_HOME=$CACHE nix-build .nix -A nrm
    - rm -rf $CACHE

TestHello.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
    - XDG_CACHE_HOME=$CACHE nix-shell .nix -A test --run "argotk.hs TestHello"
    - rm -rf $CACHE

TestListen.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
    - XDG_CACHE_HOME=$CACHE nix-shell .nix -A test --run "argotk.hs TestListen"
    - rm -rf $CACHE

TestPerfwrapper.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
    - XDG_CACHE_HOME=$CACHE nix-shell .nix -A test --run "argotk.hs TestPerfwrapper"
    - rm -rf $CACHE