Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.gitlab-ci.yml - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b228769b0204333d4adde82e16a5da42122cc3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
image: registry.gitlab.com/gitlab-org/gitlab-build-images:golang-1.7-git-2.8.4

stages:
  - test
  - package
  - publish

.test_template: &test_definition
  stage: test
  script:
    - go version
    - git version
    - make
    - make test

test:go1.5:
  <<: *test_definition
  image: registry.gitlab.com/gitlab-org/gitlab-build-images:golang-1.5-git-2.8.4

test:go1.6:
  <<: *test_definition
  image: registry.gitlab.com/gitlab-org/gitlab-build-images:golang-1.6-git-2.8.4

test:go1.7:
  <<: *test_definition
  image: registry.gitlab.com/gitlab-org/gitlab-build-images:golang-1.7-git-2.8.4

test:go1.8:
  <<: *test_definition
  image: registry.gitlab.com/gitlab-org/gitlab-build-images:golang-1.8-git-2.8.4

verify:
  stage: test
  script:
    - make notice-up-to-date
    - make verify

package:
  stage: package
  only: 
    - tags
  script:
    - apt-get update -qq
    - apt-get install -qq -y rubygems bundler
    - GOOS=linux GOARCH=amd64 make clean package
    - ls -l # Want to see permissions as they went into the .deb
    - dpkg -e *.deb
    - cat DEBIAN/control
    - cat DEBIAN/md5sums
    - rm -rf DEBIAN
  artifacts:
    paths:
      - ./*.deb

publish:
  stage: publish
  only:
    - tags
  variables:
    GIT_STRATEGY: none
  script:
    - apt-get update -qq
    - apt-get install -y rubygems
    - gem install package_cloud
    - ls -lh *.deb
    - shasum -a256 *.deb
    - package_cloud push $PACKAGECLOUD_REPO *.deb --url=https://packages.gitlab.com