image: node:4

cache:
    paths:
      - node_modules/

stages:
    - test
    - build

test:
    tags:
        - texo
    stage: test
    script:
        - npm install
        - npm test
    only:
        - develop

package:
    tags:
        - texo
    stage: build
    script:
        - npm install
        - npm test
    only:
        - tags
#    except:
#        - develop
    artifacts:
        name: "${CI_PROJECT_NAME}-${CI_BUILD_TAG}"
        paths:
            - $CI_PROJECT_NAME
        expire_in: 10 mins

image: node:4

cache:
    paths:
      - node_modules/

stages:
    - test
    - build

 test:
     tags:
         - texo
     stage: test
     script:
         - npm install
         - npm test

package:
    tags:
        - texo
    stage: build
    script:
        - npm install
    only:
        - tags
#    except:
#        - develop
    artifacts:
        name: f5-cloud-libs-"${CI_BUILD_TAG}"
        paths:
            - .
        expire_in: 10 mins

Test 2 of generation of artifact
Test 2 of generation of artifact
