File tree 10 files changed +11
-110
lines changed
10 files changed +11
-110
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ branches:
15
15
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
16
16
17
17
stages :
18
- - ' Lint markdown files'
19
18
- ' Tests'
20
19
- ' Trigger FSC Tests'
21
20
- ' Test Build using latest tag (no upload)'
27
26
28
27
include :
29
28
30
- - stage : ' Lint markdown files'
31
- name : awesome_bot
32
- os : linux
33
- language : generic
34
- install : gem install awesome_bot
35
- before_script : skip
36
- script :
37
- - find . -type f -name '*.md' -exec awesome_bot {} \;
38
-
39
- - stage : ' Lint markdown files'
40
- name : markdown-spellcheck
41
- os : linux
42
- language : generic
43
- before_install : skip
44
- install :
45
- - npm i -g markdown-spellcheck
46
- before_script :
47
- - wget --quiet https://raw.githubusercontent.com/optimizely/mdspell-config/master/.spelling
48
- script :
49
- - mdspell -a -n -r --en-us '**/*.md'
50
- after_success : skip
51
-
52
29
- stage : Tests
53
30
name : hadolint
54
31
os : linux
@@ -71,10 +48,10 @@ jobs:
71
48
name : sourceclear
72
49
os : linux
73
50
dist : xenial
74
- install :
75
- - curl -sSL https://www.sourceclear.com/install | bash
51
+ addons :
52
+ srcclr : true
76
53
script :
77
- - scripts/run_srcclr.sh
54
+ - go get -v -d ./...
78
55
79
56
- stage : Tests
80
57
name : windows build.ps1 test
Original file line number Diff line number Diff line change @@ -30,5 +30,11 @@ exclude (
30
30
github.com/coreos/etcd v3.3.12+incompatible
31
31
github.com/coreos/etcd v3.3.13+incompatible
32
32
github.com/coreos/etcd v3.3.15+incompatible
33
+ github.com/coreos/etcd v3.3.16+incompatible
34
+ github.com/coreos/etcd v3.3.17+incompatible
35
+ github.com/coreos/etcd v3.3.18+incompatible
36
+ github.com/coreos/etcd v3.3.19+incompatible
37
+ github.com/coreos/etcd v3.3.20+incompatible
38
+ github.com/coreos/etcd v3.3.21+incompatible
33
39
github.com/gorilla/websocket v1.4.0
34
40
)
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+Ce
12
12
github.com/cespare/xxhash v1.1.0 /go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc =
13
13
github.com/client9/misspell v0.3.4 /go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw =
14
14
github.com/coreos/bbolt v1.3.2 /go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk =
15
- github.com/coreos/etcd v3.3.16 +incompatible /go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE =
15
+ github.com/coreos/etcd v3.3.22 +incompatible /go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE =
16
16
github.com/coreos/go-semver v0.2.0 /go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk =
17
17
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e /go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4 =
18
18
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f /go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA =
Original file line number Diff line number Diff line change @@ -18,23 +18,3 @@ ci_build_dockerimage_alpine: ## build alpine docker image of optimizely
18
18
-t optimizely/agent:alpine \
19
19
--build-arg GO_VERSION=${GIMME_GO_VERSION:.x=} \
20
20
.
21
-
22
- ci_build_fpm_centos: ## build fpm_centos image for packaging
23
- docker build \
24
- --build-arg APP_VERSION \
25
- -f scripts/dockerfiles/Dockerfile.fpm_centos \
26
- -t fpm_centos \
27
- ${TRAVIS_BUILD_DIR}/bin
28
-
29
- ci_build_fpm_ubuntu: ## build fpm_centos image for packaging
30
- docker build \
31
- --build-arg APP_VERSION \
32
- -f scripts/dockerfiles/Dockerfile.fpm_ubuntu \
33
- -t fpm_ubuntu \
34
- ${TRAVIS_BUILD_DIR}/bin
35
-
36
- ci_get_fpm_centos: ## get generated rpm
37
- docker run -v /tmp/output_packages:/output -it fpm_centos bash -c "cp *.rpm /output"
38
-
39
- ci_get_fpm_ubuntu: ## get generated deb
40
- docker run -v /tmp/output_packages:/output -it fpm_ubuntu bash -c "cp *.deb /output"
Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ set -euo pipefail
4
4
if [[ $TRAVIS_OS_NAME == " linux" ]]; then
5
5
echo " we're on linux"
6
6
cd $TRAVIS_BUILD_DIR
7
- make -e ci_build_fpm_centos
8
- make -e ci_get_fpm_centos
9
- make -e ci_build_fpm_ubuntu
10
- make -e ci_get_fpm_ubuntu
11
7
make -e ci_build_dockerimage
12
8
make -e ci_build_dockerimage_alpine
13
9
elif [[ $TRAVIS_OS_NAME == " osx" ]]; then
Original file line number Diff line number Diff line change @@ -7,14 +7,6 @@ cd /tmp/output_packages
7
7
if [[ $TRAVIS_OS_NAME == " linux" ]]; then
8
8
echo " we're on linux"
9
9
10
- for deb in ` ls * .deb` ; do
11
- curl -H " X-JFrog-Art-Api:${ARTIFACTORY_PASSWORD} " -XPUT " https://optimizely.jfrog.io/optimizely/deb-optimizely/pool/$deb ;deb.distribution=xenial-optimizely;deb.distribution=bionic-optimizely;deb.component=main;deb.architecture=amd64" -T $deb
12
- done
13
-
14
- for rpm in ` ls * .rpm` ; do
15
- curl -H " X-JFrog-Art-Api:${ARTIFACTORY_PASSWORD} " -XPUT https://optimizely.jfrog.io/optimizely/rpm-optimizely/ -T $rpm
16
- done
17
-
18
10
# push docker images to dockerhub
19
11
echo " $DOCKERHUB_PASS " | docker login -u " $DOCKERHUB_USER " --password-stdin
20
12
# if you dont specify the tag, it'll push all image versions
Original file line number Diff line number Diff line change 7
7
RUN make setup build
8
8
9
9
FROM alpine:3.10
10
- RUN apk add --no-cache ca-certificates=20191127-r0
10
+ RUN apk add --no-cache ca-certificates
11
11
COPY --from=builder /go/src/github.com/optimizely/agent/bin/optimizely /optimizely
12
12
CMD ["/optimizely"]
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments