File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 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 
Original file line number Diff line number Diff line change @@ -3,10 +3,11 @@ FROM golang:$GO_VERSION as builder
33
44WORKDIR /go/src/github.com/optimizely/agent
55COPY . .
6- RUN make install
6+ RUN make install build 
77RUN make ci_build_static_binary
88
99FROM scratch
1010COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1111COPY --from=builder /go/src/github.com/optimizely/agent/bin/optimizely /optimizely
1212CMD ["/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