basic.yml 2.39 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
## DO NOT REMOVE this file. some repositories DEPEND on it.
#
#############  Build tests ############

.nix-build:
  stage: build
  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

#############  Integration tests ############

.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\/.*/
46
    #- /^wip\/.*/
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 89 90 91 92 93 94 95 96 97 98 99 100 101 102
  tags:
    - integration

.TestPower.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 TestPower"
    - 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

KNL-Power.test:
  extends: .TestPower.test
  tags:
    - knl

Perfwrapper.test:
  extends: .TestPerfwrapper.test
KNL-Perfwrapper.test:
  extends: .TestPerfwrapper.test
  tags:
    - knl

Listen.test:
  extends: .TestListen.test
KNL-Listen.test:
  extends: .TestListen.test
  tags:
    - knl

Hello.test:
  extends: .TestHello.test
KNL-Hello.test:
  extends: .TestHello.test
  tags:
    - knl