This repository was archived by the owner on Aug 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 VMD_PASS : ${{ secrets.VMD_PASS }}
99
1010jobs :
11- build :
11+ tests :
1212 strategy :
1313 matrix :
14- os : [ubuntu-latest, macos-latest]
14+ os : [ubuntu-latest, macos-latest, windows-latest ]
1515 runs-on : ${{ matrix.os }}
1616 steps :
1717 - name : Set up Go
2626 run : go test -v ./...
2727
2828 - name : Setup BATS
29+ if : runner.os != 'windows'
2930 run : |
3031 set -e
3132
3637 git clone https://github.com/bats-core/bats-core.git && bats-core/install.sh $HOME
3738
3839 - name : Run BATS Tests
40+ if : runner.os != 'windows'
41+ with :
42+ max_attempts : 3
3943 run : |
4044 export PATH=${PATH}:/home/runner/bin
4145 bats test/bats
46+
4247
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ To make it available to all users `sudo mv vmd-<os>-<version> /usr/local/bin/vmd
3232 # Display example manifest file
3333 vmd get manifestexample
3434```
35- ## Testing
35+ # Testing
3636To run commands against source use ` alias vmd="go run main.go ` </br >
3737Run go tests ` go test ./... ` </br >
3838Run BATS tests ` bats test/bats `
3939
40- ## Development
40+ # Development
4141Update the SDK ` go get -u github.com/laidbackware/vmware-download-sdk ` </br >
4242Ensure that your IDE exports ` VMD_USER ` and ` VMD_PASS ` to be able to run tests and debug.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const (
1818 vmd get manifestexample`
1919
2020 downloadUsage = ` # Download the latest version of release 11 with a file matching the pattern
21- vmd download -p vmware_tools -s vmtools -v 11.* -f VMware-Tools-darwin-*.zip --acceptEula
21+ vmd download -p vmware_tools -s vmtools -v 11.* -f VMware-Tools-darwin-*.zip --accepteula
2222
2323 # Download files using a manifest file
2424 vmd download -m manifest.yml --accepteula`
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ var password string
2727
2828// rootCmd represents the base command when called without any subcommands
2929var rootCmd = & cobra.Command {
30- Version : "0.0.1 " ,
30+ Version : "0.1.0 " ,
3131 Use : "vmd" ,
3232 Short : "Download binaries from customerconnect.vmware.com" ,
3333 Long : "vmd downloads binaries from customerconnect.vmware.com" ,
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ env GOOS=linux GOARCH=amd64 go build -o ${SCRIPT_DIR}/builds/vmd-linux-v${VERSIO
77
88env GOOS=darwin GOARCH=amd64 go build -o ${SCRIPT_DIR} /builds/vmd-darwin-v${VERSION}
99
10- # env GOOS=windows GOARCH=amd64 go build -o ${SCRIPT_DIR}/builds/vmd-windows-v${VERSION}.exe
10+ env GOOS=windows GOARCH=amd64 go build -o ${SCRIPT_DIR} /builds/vmd-windows-v${VERSION} .exe
1111
You can’t perform that action at this time.
0 commit comments