github.com/grumpyhome/grumpy@v0.3.1-0.20201208125205-7b775405bdf1/.gitlab-ci.yml (about)

     1  image: golang:1.10.3-stretch
     2  
     3  cache:
     4    paths:
     5      - /apt-cache
     6      - /go/src/github.com
     7      - /go/src/golang.org
     8      - /go/src/google.golang.org
     9      - /go/src/gopkg.in
    10  
    11  stages:
    12    - test
    13    - build
    14  
    15  before_script:
    16    - apt-get update && apt-get install -y --no-install-recommends python2.7 python2.7-dev python-setuptools
    17    - easy_install pip
    18    - pip2 install pytest pytest-cov
    19  
    20  install_and_test:
    21    stage: test
    22    script:
    23      # Install the thing
    24      - cd grumpy-tools-src
    25      - pip2 install .
    26      - cd ../grumpy-runtime-src
    27      - pip2 install .
    28      # Test the thing
    29      - cd ../grumpy-tools-src
    30      - pytest
    31      - cd ../grumpy-runtime-src
    32      - make gofmt lint && make -j2 test