.gitlab-ci.yml 1.31 KB
Newer Older
Swann Perarnau's avatar
Swann Perarnau committed
1
variables:
Valentin Reis's avatar
Valentin Reis committed
2
  ARGOPKGS : "https://xgitlab.cels.anl.gov/argo/argopkgs/-/archive/master/argopkgs-master.tar.gz"
Swann Perarnau's avatar
Swann Perarnau committed
3

4
stages:
5
  - style
6
  - build
7
  - release
8 9 10 11 12 13 14 15 16

make:generic:
  stage: build
  script:
    - ./autogen.sh
    - mkdir build
    - ./configure --prefix=`pwd`/build
    - make
    - make check
17
    - make install
18 19 20 21
  artifacts:
    when: on_failure
    paths:
      - tests/*.log
22 23 24
  except:
    - /^wip.*/
    - /^WIP.*/
25 26 27 28

make:knl:
  stage: build
  script:
29
    - source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64
30 31
    - ./autogen.sh
    - mkdir build
32
    - CC=icc CFLAGS="-mkl -xhost" ./configure --prefix=`pwd`/build --enable-benchmarks
33
    - make -j64
34
    - make check
35
    - make install
36 37 38 39 40 41 42 43 44
  artifacts:
    when: on_failure
    paths:
      - tests/*.log
  except:
    - /^wip.*/
    - /^WIP.*/
  tags:
    - knl
Swann Perarnau's avatar
Swann Perarnau committed
45 46

repoquality:
47
  stage: style
Swann Perarnau's avatar
Swann Perarnau committed
48 49 50 51
  script:
    - nix run -f "$ARGOPKGS" repoquality --command repoquality
  tags:
    - integration
52 53 54 55

checkpatch:
  stage: style
  script:
56
    - nix run -f "$ARGOPKGS" checkpatch --command checkpatch.pl
57 58 59 60 61 62 63 64 65

readthedocs:
  stage: release
  when: on_success
  only:
    - master
    - /v\.[0-9]+\.[0-9]+\.[0-9]+/
  script:
    - nix run nixpkgs.curl -c curl -X POST -d "branch=$CI_COMMIT_REF_NAME" -d "token=$READTHEDOCS_TOKEN" https://readthedocs.org/api/v2/webhook/argo-aml/83161/