Commit 5313ba5b authored by Denis Filatov's avatar Denis Filatov
Browse files

Update .gitlab-ci.yml

parent 809a1363
Loading
Loading
Loading
Loading
+3 −32
Original line number Diff line number Diff line
image: alpine

stages:
  - setup
  - test
  - deploy

variables:
 GIT_SUBMODULE_STRATEGY: normal

prepare:
  stage: setup
  when: manual  
  script: 
    - curl --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py?ref=master | python -c "import sys, json, base64; open('asn2md.py', 'wb').write(base64.b64decode(json.load(sys.stdin)['content']))"
    - mkdir -p asn1c 
    - git clone https://github.com/fillabs/asn1c.git asn1c-build
    - cd asn1c-build && autoreconf -iv && ./configure --prefix=./asn1c && make && make install
    - rm -rf asn1c-build
  cache:
    key: asn1c
    paths:
      - asn1c/

validate:
  image: danya25/asn1c
  stage: test
  script: make validate
  cache:
    - key: asn1c
      policy: pull
      paths:
        - asn1c/
    - key: iso
    paths:
      - iso/*
  only:
@@ -39,7 +14,6 @@ validate:
    
documentation:
  stage: deploy
  
  script:
    - curl --header "PRIVATE-TOKEN:$CI_DOC_TOKEN" https://forge.etsi.org/rep/api/v4/projects/592/repository/files/asn2md.py?ref=master | python -c "import sys, json, base64; open('asn2md.py', 'wb').write(base64.b64decode(json.load(sys.stdin)['content']))"
    - make doc
@@ -50,6 +24,3 @@ documentation:
  only:
    changes:
      - "*.asn"
#  artifacts:
#    paths:
#    - docs/*