Skip to content

Commit

Permalink
Fix environment variables again
Browse files Browse the repository at this point in the history
  • Loading branch information
rvazarkar committed Sep 2, 2016
1 parent a8a0667 commit 2e3b3ea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then npm run linuxbuild; fi

before_deploy:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 7z a -tzip -mx9 BloodHound-darwin-x64-$(TRAVIS_COMMIT).zip BloodHound-darwin-x64 > /dev/null; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 7z a -tzip -mx9 BloodHound-linux-ia32-$(TRAVIS_COMMIT).zip BloodHound-linux-ia32 > /dev/null; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 7z a -tzip -mx9 BloodHound-linux-x64-$(TRAVIS_COMMIT).zip BloodHound-linux-x64 > /dev/null; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 7z a -tzip -mx9 BloodHound-darwin-x64-$TRAVIS_COMMIT.zip BloodHound-darwin-x64; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 7z a -tzip -mx9 BloodHound-linux-ia32-$TRAVIS_COMMIT.zip BloodHound-linux-ia32; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 7z a -tzip -mx9 BloodHound-linux-x64-$TRAVIS_COMMIT.zip BloodHound-linux-x64; fi

deploy:
provider: script
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ test_script:
- node --version
- npm --version
- npm run winbuild
- 7z a -tzip -mx9 BloodHound-win32-ia32-%APPVEYOR_REPO_COMMIT%.zip BloodHound-win32-ia32
- 7z a -tzip -mx9 BloodHound-win32-x64-%APPVEYOR_REPO_COMMIT%.zip BloodHound-win32-x64
- 7z a -tzip -mx9 BloodHound-win32-ia32.zip BloodHound-win32-ia32
- 7z a -tzip -mx9 BloodHound-win32-x64.zip BloodHound-win32-x64

artifacts:
- path: BloodHound-win32-ia32-$(APPVEYOR_REPO_COMMIT).zip
- path: BloodHound-win32-ia32.zip
name: BloodHound-win32-ia32
- path: BloodHound-win32-x64-$(APPVEYOR_REPO_COMMIT).zip
- path: BloodHound-win32-x64.zip
name: BloodHound-win32-x64

deploy:
Expand Down
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
curl -s -X DELETE --user "${GH_USER}" https://api.github.com/repos/adaptivethreat/BloodHound/releases/assets/$x64id
fi

curl -X POST -# --header 'Content-Type:application/zip' --data-binary @BloodHound-linux-ia32-$(TRAVIS_COMMIT).zip --user "${GH_USER}" https://uploads.github.com/repos/adaptivethreat/BloodHound/releases/4033842/assets?name=BloodHound-linux-ia32-$(TRAVIS_COMMIT).zip
curl -X POST -# --header 'Content-Type:application/zip' --data-binary @BloodHound-linux-x64-$(TRAVIS_COMMIT).zip --user "${GH_USER}" https://uploads.github.com/repos/adaptivethreat/BloodHound/releases/4033842/assets?name=BloodHound-linux-x64-$(TRAVIS_COMMIT).zip
curl -X POST -# --header 'Content-Type:application/zip' --data-binary @BloodHound-linux-ia32-$TRAVIS_COMMIT.zip --user "${GH_USER}" https://uploads.github.com/repos/adaptivethreat/BloodHound/releases/4033842/assets?name=BloodHound-linux-ia32-$TRAVIS_COMMIT.zip
curl -X POST -# --header 'Content-Type:application/zip' --data-binary @BloodHound-linux-x64-$TRAVIS_COMMIT.zip --user "${GH_USER}" https://uploads.github.com/repos/adaptivethreat/BloodHound/releases/4033842/assets?name=BloodHound-linux-x64-$TRAVIS_COMMIT.zip
fi

if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ ! $macid == "" ]]; then
curl -s -X DELETE --user "${GH_USER}" https://api.github.com/repos/adaptivethreat/BloodHound/releases/assets/$macid
fi

curl -X POST -# --header 'Content-Type:application/zip' --data-binary @BloodHound-darwin-x64-$(TRAVIS_COMMIT).zip --user "${GH_USER}" https://uploads.github.com/repos/adaptivethreat/BloodHound/releases/4033842/assets?name=BloodHound-darwin-x64-$(TRAVIS_COMMIT).zip
curl -X POST -# --header 'Content-Type:application/zip' --data-binary @BloodHound-darwin-x64-$TRAVIS_COMMIT.zip --user "${GH_USER}" https://uploads.github.com/repos/adaptivethreat/BloodHound/releases/4033842/assets?name=BloodHound-darwin-x64-$TRAVIS_COMMIT.zip
fi

0 comments on commit 2e3b3ea

Please sign in to comment.