refactored.yml 2.95 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
## 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)
Valentin Reis's avatar
Valentin Reis committed
14
    - XDG_CACHE_HOME=$CACHE nix-build -A containers
15 16 17 18 19 20
    - rm -rf $CACHE

libnrm.build:
  extends: .nix-build
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
Valentin Reis's avatar
Valentin Reis committed
21
    - XDG_CACHE_HOME=$CACHE nix-build -A libnrm
22 23 24 25 26 27
    - rm -rf $CACHE

nrm.build:
  extends: .nix-build
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
Valentin Reis's avatar
Valentin Reis committed
28
    - XDG_CACHE_HOME=$CACHE nix-build -A nrm
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    - rm -rf $CACHE

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

.nix-integration:
  stage: test
  artifacts:
    paths:
      - _output/*
    expire_in: 1 week
    when: always
  tags:
    - integration

.TestPower.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
Valentin Reis's avatar
Valentin Reis committed
47
    - XDG_CACHE_HOME=$CACHE nix-shell -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)
Valentin Reis's avatar
Valentin Reis committed
54
    - XDG_CACHE_HOME=$CACHE nix-shell -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)
Valentin Reis's avatar
Valentin Reis committed
61
    - XDG_CACHE_HOME=$CACHE nix-shell -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)
Valentin Reis's avatar
Valentin Reis committed
68
    - XDG_CACHE_HOME=$CACHE nix-shell -A test --run "argotk.hs TestPerfwrapper --verbose"
69 70 71 72 73 74
    - rm -rf $CACHE

.TestSTREAM.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
Valentin Reis's avatar
Valentin Reis committed
75
    - XDG_CACHE_HOME=$CACHE nix-shell -A test --run "argotk.hs TestSTREAM --verbose"
76 77 78 79 80 81
    - rm -rf $CACHE

.TestAMG.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
Valentin Reis's avatar
Valentin Reis committed
82
    - XDG_CACHE_HOME=$CACHE nix-shell -A test --run "argotk.hs TestAMG"
83 84 85 86 87 88
    - rm -rf $CACHE

.TestSTREAM.test:
  extends: .nix-integration
  script:
    - CACHE=$(mktemp -d --suffix=nixcache /tmp/deletable-nix-cache-XXXX)
Valentin Reis's avatar
Valentin Reis committed
89
    - XDG_CACHE_HOME=$CACHE nix-shell -A test --run "argotk.hs TestSTREAM"
90 91 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 117 118 119 120 121
    - 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

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