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
| promise.then(function(results) { | |
| do_stuff(); | |
| }) | |
| .catch(function(err) { | |
| console.error(err); | |
| }); |
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
| build: | |
| steps: | |
| script: | |
| name: multiline bash | |
| code: > | |
| if [ -f "$EXAMPLE_PATH" ]; then | |
| echo "path exists"; | |
| else | |
| echo "path does not exist"; |
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
| build: | |
| steps: | |
| - script: | |
| name: step | |
| code: > | |
| if [ true ]; then | |
| echo "true"; | |
| fi | |
| # The > operator removes all new lines and extra space |
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
| box: wercker/golang | |
| build: | |
| steps: | |
| - wercker/setup-go-workspace | |
| - script: | |
| name: get dependencies | |
| code: go get -v ./... | |
| - script: | |
| name: build executable | |
| code: go build -a -v ./... |
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
| ( while [ 1 ]; do echo .; sleep 60; done; ) & | |
| # Long running task | |
| kill %1 |
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
| build: | |
| steps: | |
| - npm-install: | |
| cwd: app |
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
| box: wercker/rvm | |
| build: | |
| steps: | |
| - bundle-install | |
| - bundle-install: | |
| cwd: src |
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
| build: | |
| steps: | |
| - script: | |
| name: install ftp | |
| code: sudo apt-get update -y && sudo apt-get install ftp -y | |
| deploy: | |
| steps: | |
| - script: | |
| name: install ftp | |
| code: sudo apt-get update -y && sudo apt-get install ftp -y |
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
| deploy: | |
| steps: | |
| - wercker/install-packages | |
| packages: git | |
| # insert other steps here |
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
| build: | |
| steps: | |
| - wercker/setup-go-workspace: | |
| package-dir: github.com/wercker/getting-started-golang |