- 
                Notifications
    You must be signed in to change notification settings 
- Fork 18
Travis build master #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            9 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      6373d11
              
                initial test incorporating things from dark-decoy build process
              
              
                jmwample ffbad55
              
                Disabled unreliable test
              
              
                jmwample 300a123
              
                disabled another unreliable test
              
              
                jmwample 9770154
              
                Attempting to checkout specific commit for build process
              
              
                jmwample e492f2b
              
                use mercurial checkout
              
              
                jmwample c50a0c9
              
                adding env vars for Psiphon repo commits used
              
              
                jmwample 79c1f6d
              
                merging changes from master
              
              
                jmwample 6f04b3f
              
                minor fixes - relying on travis ci online env vars over local
              
              
                jmwample 58e93df
              
                accomodating references to sergeyfrolov/gotapdance in psiphon for bui…
              
              
                jmwample File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
            Binary file not shown.
          
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #!/bin/sh | ||
|  | ||
| # This Script is a psiphon specific tool to | ||
| # 1. digest the clientConf of the current branch into the | ||
| # format used in psiphons embedded_config.go | ||
| # 2. Perform search and replace on the embedded_config.go file to | ||
| # remove the old clientconfig and replace with new digested value. | ||
| # | ||
| # Use: | ||
| # $ psiphon_digest_cc.sh $PATH_TO_ASSETS/ClientConf $PATH_TO_PSIPHON_CORE/psiphon/common/tapdance/embedded_config.go | ||
| # | ||
| # Note: This will replace the value inline in the Psiphon embedded config. | ||
|  | ||
| if [ "$#" -ne 2 ]; then | ||
| echo "Not enough input arguments:" | ||
| echo '$ psiphon_digest_cc.sh $PATH_TO_ASSETS/ClientConf $PATH_TO_PSIPHON_TD_CORE/embedded_config.go' | ||
| exit 1 | ||
| fi | ||
|  | ||
| TMP_SEDFILE="build/embedded_config.sed" | ||
|  | ||
| # Digest the clienConf to hex | ||
| EMBEDDED_CC=$(hexdump -ve '"\\\\\\\\\x" 1/1 "%.2x"' $1); | ||
|  | ||
| # Create search and replace rule and store to sed scriptfile (can be too long for sed inline) | ||
| printf "s/embeddedClientConf = \"[x0-9a-fA-F\\]+\"/embeddedClientConf = \"$EMBEDDED_CC\"/g" > $TMP_SEDFILE | ||
|  | ||
| # Replace the old ClientConf from the psiphon config | ||
| sed -r -i '' -f $TMP_SEDFILE $2 | ||
|  | ||
| rm $TMP_SEDFILE | 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that we previously would clone master branch, but now are cloning build-refraction-networking? Is there a reason for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pulls a commit based on an environment variable set in the travis ci online environment. I added this so that there is some consistency around what is being built against. It is just checking it out locally to a branch named
build-refraction-networking.This is actually a question that I have for the psiphon folks, if there are stable releases of this repo I would prefer to use those ( as we are for
Psiphon-Labs/psiphon-tunnel-core) but these are configurable to specific commits / tags / releases using env vars in travis now.This is the same for #23