Преглед на файлове

Removed Unused CI Tests

Yoginth преди 7 години
родител
ревизия
fe40e35bc9
променени са 1 файла, в които са добавени 41 реда и са изтрити 56 реда
  1. 41 56
      .gitlab-ci.yml

+ 41 - 56
.gitlab-ci.yml

@@ -5,121 +5,106 @@ before_script:
     - apk --no-cache --no-progress add --virtual build-deps build-base git
 
 stages:
-    - build
-    - prepare
     - test
-    - clean
-    - commands
-    - image-test
-    - pre-test-source
+    - build
+    - execute
     - deploy
 
-Build:
+Compile LESS:
     image: golang:alpine
-    stage: build
+    stage: test
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
         - git clone https://gitote.in/gitote/gitote.git gitote
         - cd gitote
-        - make build
+        - make less
 
-Build Dev:
+Bindata:
     image: golang:alpine
-    stage: build
+    stage: test
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
         - git clone https://gitote.in/gitote/gitote.git gitote
         - cd gitote
-        - make build-dev
+        - wget https://gitlab.com/gitote/bindata/raw/master/go-bindata
+        - make bindata
 
-Build Dev Race:
+Test:
     image: golang:latest
     before_script:
         - apt-get update -qq
         - apt-get install -y zip unzip
-    stage: build
+    stage: test
     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
+        - go test -v -cover -race ./...
 
-Build Prod:
-    image: golang:latest
-    before_script:
-        - apt-get update -qq
-        - apt-get install -y zip unzip
-    stage: build
+Clean:
+    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
-        - wget https://gitlab.com/gitote/bindata/raw/master/go-bindata
-        - make bindata
-        - make build
+        - make clean
 
-Compile LESS:
+Build:
     image: golang:alpine
-    stage: prepare
+    stage: build
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
         - git clone https://gitote.in/gitote/gitote.git gitote
         - cd gitote
-        - make less
+        - make build
 
-Bindata:
+Build Dev:
     image: golang:alpine
-    stage: prepare
+    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-dev
 
-Test:
+Build Dev Race:
     image: golang:latest
     before_script:
         - apt-get update -qq
         - apt-get install -y 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
+    stage: build
     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 .
+        - make build-dev-race
 
-Clean:
-    image: golang:alpine
-    stage: clean
+Build Prod:
+    image: golang:latest
+    before_script:
+        - apt-get update -qq
+        - apt-get install -y 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 clean
+        - wget https://gitlab.com/gitote/bindata/raw/master/go-bindata
+        - make bindata
+        - make build
 
 Admin:
     image: golang:alpine
-    stage: commands
+    stage: execute
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
@@ -130,7 +115,7 @@ Admin:
 
 Hook:
     image: golang:alpine
-    stage: commands
+    stage: execute
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
@@ -141,7 +126,7 @@ Hook:
 
 Import:
     image: golang:alpine
-    stage: commands
+    stage: execute
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
@@ -152,7 +137,7 @@ Import:
 
 Cert:
     image: golang:alpine
-    stage: commands
+    stage: execute
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
@@ -163,7 +148,7 @@ Cert:
 
 Serv:
     image: golang:alpine
-    stage: commands
+    stage: execute
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote
@@ -172,9 +157,9 @@ Serv:
         - go build
         - ./gitote serv --help
 
-Running:
+Web:
     image: golang:alpine
-    stage: pre-test-source
+    stage: execute
     script:
         - mkdir -p $GOPATH/src/gitote
         - cd $GOPATH/src/gitote