.gitlab-ci.yml 1.63 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
Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
7
  - docs
8
  - release
9

Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
10 11 12 13 14 15 16 17 18 19 20 21
repoquality:
  stage: style
  script:
    - nix run -f "$ARGOPKGS" repoquality --command repoquality
  tags:
    - integration

checkpatch:
  stage: style
  script:
    - nix run -f "$ARGOPKGS" checkpatch --command checkpatch.pl

22 23 24 25 26 27 28 29
make:generic:
  stage: build
  script:
    - ./autogen.sh
    - mkdir build
    - ./configure --prefix=`pwd`/build
    - make
    - make check
30
    - make install
31 32 33 34
  artifacts:
    when: on_failure
    paths:
      - tests/*.log
35 36 37
  except:
    - /^wip.*/
    - /^WIP.*/
38 39 40 41

make:knl:
  stage: build
  script:
42
    - source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64
43 44
    - ./autogen.sh
    - mkdir build
45
    - CC=icc CFLAGS="-mkl -xhost" ./configure --prefix=`pwd`/build --enable-benchmarks
46
    - make -j64
47
    - make check
48
    - make install
49 50 51 52 53 54 55 56 57
  artifacts:
    when: on_failure
    paths:
      - tests/*.log
  except:
    - /^wip.*/
    - /^WIP.*/
  tags:
    - knl
Swann Perarnau's avatar
Swann Perarnau committed
58

59
readthedocs:
Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
60
  stage: docs
61 62 63
  when: on_success
  only:
    - master
Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
64
    - /v[0-9]+\.[0-9]+\.x/
65 66
  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/
67

Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
68
dist:
69 70 71 72 73
  stage: release
  when: on_success
  only:
    - tags
  script:
Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
74 75
    - nix-build "$ARGOPKGS" -A aml-dist --arg aml-src ./.
    - ./release.sh CREATE $CI_JOB_ID $CI_PROJECT_ID $RELEASE_TOKEN $CI_COMMIT_REF_NAME
76 77 78 79 80 81
  artifacts:
    when: on_success
    paths:
      - result/*.tar.gz
      - CHECKSUM
    expire_in: 1000y
Nicolas Denoyelle's avatar
Nicolas Denoyelle committed
82