| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- image: golang:alpine
- before_script:
- - apk update
- - apk --no-cache --no-progress add --virtual build-deps build-base git linux-pam-dev
- stages:
- - build
- - prepare
- - test
- - clean
- - commands
- - image-test
- - pre-test-source
- Build:
- image: golang:alpine
- stage: build
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - make build
- Build Dev:
- image: golang:alpine
- stage: build
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - make build-dev
- Build Dev Race:
- image: golang:latest
- before_script:
- - apt-get update -qq
- - apt-get install -y libpam-dev zip unzip
- stage: build
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - make build-dev-race
- Build Prod:
- image: golang:latest
- before_script:
- - apt-get update -qq
- - apt-get install -y libpam-dev zip unzip
- stage: build
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - wget https://gitlab.com/gitote/bindata/raw/master/go-bindata
- - make bindata
- - make build
- Compile LESS:
- image: golang:alpine
- stage: prepare
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - make less
- Bindata:
- image: golang:alpine
- stage: prepare
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - wget https://gitlab.com/gitote/bindata/raw/master/go-bindata
- - make bindata
- Test:
- image: golang:latest
- before_script:
- - apt-get update -qq
- - apt-get install -y libpam-dev zip unzip
- stage: test
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go test -v -cover -race ./...
- Go LOC:
- image: golang:alpine
- stage: test
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go get -u github.com/hhatto/gocloc/cmd/gocloc
- - gocloc .
- Clean:
- image: golang:alpine
- stage: clean
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - make clean
- Admin:
- image: golang:alpine
- stage: commands
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go build
- - ./gitote admin
- Hook:
- image: golang:alpine
- stage: commands
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go build
- - ./gitote hook
- Import:
- image: golang:alpine
- stage: commands
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go build
- - ./gitote import
- Cert:
- image: golang:alpine
- stage: commands
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go build
- - ./gitote cert --help
- Serv:
- image: golang:alpine
- stage: commands
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go build
- - ./gitote serv --help
- Running:
- image: golang:alpine
- stage: pre-test-source
- script:
- - mkdir -p $GOPATH/src/gitote
- - cd $GOPATH/src/gitote
- - git clone https://gitote.in/gitote/gitote.git gitote
- - cd gitote
- - go build
- - ./gitote web & sleep 20 ; kill $! || echo $?
|