Sha256: 1f3de516d6682d9471ae3bf0872f6c9e47c94aab07bbadb726970093dbd1edef

Contents?: true

Size: 975 Bytes

Versions: 1

Compression:

Stored size: 975 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:
        - echo "releasing $CI_COMMIT_TAG"
        - export GEM_VERSION="$CI_COMMIT_TAG"
        - export GEM_HOST_API_KEY="$GEM_HOST_API_KEY"
        - gem build gupshup_whatsapp
        - echo $GEM_HOST_API_KEY
        - gem push -V *.gem
        - rm gupshup_whatsapp*.gem
    rules:
        -   if: $CI_COMMIT_TAG




Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gupshup_whatsapp-1.0.5 .gitlab-ci.yml