basic.yml 3 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
## 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:
37
      - _output/*
38
    expire_in: 1 week
39
    when: always
40 41 42 43 44 45 46
  tags:
    - integration

.TestPower.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
47
    - XDG_CACHE_HOME=$CACHE nix-shell .nix -A test --run "cp $MANIFESTS/* _output/ ;argotk.hs TestPower --verbose"
48 49 50 51 52 53
    - rm -rf $CACHE

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

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

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

71 72 73 74 75 76 77
.TestSTREAM.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 TestSTREAM --verbose"
    - rm -rf $CACHE

78 79 80 81 82 83 84 85 86 87 88 89 90 91
.TestAMG.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 TestAMG"
    - rm -rf $CACHE

.TestSTREAM.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 TestSTREAM"
    - rm -rf $CACHE

92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
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
117 118 119 120 121

KNL-STREAM.test:
  extends: .TestSTREAM.test
  tags:
    - knl