File tree 3 files changed +20
-1
lines changed
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 93
93
script :
94
94
- pytest -vv --diff-type=split tests/acceptance/test_acceptance/ --host http://localhost:8080
95
95
96
+ - stage : ' Building Optimizely Agent'
97
+ if : (branch = master AND type = push) OR type = pull_request OR tag IS present
98
+ env :
99
+ SDK=agent
100
+ SDK_BRANCH=$(if [ -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then echo ${TRAVIS_BRANCH}; else echo "$TRAVIS_PULL_REQUEST_BRANCH"; fi)
101
+ cache : false
102
+ before_install :
103
+ ./scripts/pull_travis_ci_tools.sh
104
+ install : skip
105
+ script :
106
+ - " $HOME/travisci-tools/trigger-script-with-status-update.sh"
107
+
96
108
- stage : Test Build using latest tag (no upload)
97
109
name : linux
98
110
os : linux
Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ FROM golang:$GO_VERSION as builder
3
3
4
4
WORKDIR /go/src/github.com/optimizely/agent
5
5
COPY . .
6
- RUN make install
6
+ RUN make install build
7
7
RUN make ci_build_static_binary
8
8
9
9
FROM scratch
10
10
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
11
11
COPY --from=builder /go/src/github.com/optimizely/agent/bin/optimizely /optimizely
12
12
CMD ["/optimizely"]
13
+
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+ BRANCH_NAME=${1:- master}
5
+ mkdir $HOME /travisci-tools && pushd $HOME /travisci-tools && git init && git pull https://$CI_USER_TOKEN @github.com/optimizely/travisci-tools.git $BRANCH_NAME && popd
6
+
You can’t perform that action at this time.
0 commit comments