Sha256: 26b5b0c8d2aced327ee8d8744dcce198e5d21fb676f77b62c0c3604ece99367c

Contents?: true

Size: 967 Bytes

Versions: 2

Compression:

Stored size: 967 Bytes

Contents

image: ruby

stages:
    - docs
    - test
    - push

pages:
    stage: docs
    script:
        - mkdir .public
        - gem install yard
        - yard -q
        - cp -r ./doc/* .public
        - rm -rf public
        - mv .public public
    artifacts:
        paths:
            - public
    rules:
        - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

test:
    stage: test
    script:
        #Temporary version only for testing
        - export GEM_VERSION="1.0.0"
        - export GEM_HOST_API_KEY="$GEM_HOST_API_KEY"
        - echo $GEM_HOST_API_KEY
        - bundle install
        - rspec --format doc

publish:
    stage: push
    script:
        - export
        - echo "releasing $CI_COMMIT_TAG"
        - export GEM_VERSION="$CI_COMMIT_TAG"
        - gem build gupshup_whatsapp
        - echo "$GEM_API_KEY"
        - GEM_HOST_API_KEY="$GEM_API_KEY" gem push -V *.gem
        - rm gupshup_whatsapp*.gem
    rules:
        -   if: $CI_COMMIT_TAG




Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gupshup_whatsapp-1.0.7 .gitlab-ci.yml
gupshup_whatsapp-1.0.6 .gitlab-ci.yml