Skip to content

Commit cff8dac

Browse files
authored
feat(ci): integration with fsc (#202)
integrated agent with FSC
1 parent 7407161 commit cff8dac

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,18 @@ jobs:
9393
script:
9494
- pytest -vv --diff-type=split tests/acceptance/test_acceptance/ --host http://localhost:8080
9595

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+
96108
- stage: Test Build using latest tag (no upload)
97109
name: linux
98110
os: linux

scripts/dockerfiles/Dockerfile.static

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ FROM golang:$GO_VERSION as builder
33

44
WORKDIR /go/src/github.com/optimizely/agent
55
COPY . .
6-
RUN make install
6+
RUN make install build
77
RUN make ci_build_static_binary
88

99
FROM scratch
1010
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1111
COPY --from=builder /go/src/github.com/optimizely/agent/bin/optimizely /optimizely
1212
CMD ["/optimizely"]
13+

scripts/pull_travis_ci_tools.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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+

0 commit comments

Comments
 (0)