Created
          April 2, 2017 15:44 
        
      - 
      
- 
        Save marcelog/f044da2935bb7d32d0fe6442647a75cd to your computer and use it in GitHub Desktop. 
    Example for buildspec file for Amazon CodeBuild and Amazon CodePipeline to achieve Continuous Integration and Continuous Delivery for a ServerLess project
  
        
  
    
      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
    
  
  
    
  | version: 0.1 | |
| phases: | |
| install: | |
| commands: | |
| - printenv | |
| - npm install | |
| build: | |
| commands: | |
| - npm run build | |
| post_build: | |
| commands: | |
| - mkdir -p build | |
| - tar jcf build/myApp-$(date +%Y%m%d%H%m%S).tar.bz2 .eslintrc.js .gitignore README.md buildspec.yml package.json serverless.yml src test | |
| - npm install -g serverless | |
| - serverless -v -s $(echo ${CODEBUILD_INITIATOR} | cut -d'/' -f2 | cut -d'_' -f3) deploy | |
| artifacts: | |
| files: | |
| - build*/** | |
| discard-paths: yes | 
is there a way to print phase status (success or failed)
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Hi,
I have five lambda,In the five lambda function inside , I need to install node-modules, With the help of codebuild, buildspec file.
How to do that?