Skip to content
Snippets Groups Projects
Commit f69f9d83 authored by PHENOMICAL's avatar PHENOMICAL
Browse files

Here we go again

parent d60d506a
No related merge requests found
#!/bin/bash
set -ev
echo -e "Starting downloading dependencies\n"
cd $TRAVIS_BUILD_DIR
mkdir lib
......
#!/bin/bash
set -ev
echo -e "Starting to tag commit.\n"
cd $TRAVIS_BUILD_DIR
git config --global user.email "builds@travis-ci.org"
......
#!/bin/bash
set -ev
echo -e "Deploying version info gist!\n"
cd $TRAVIS_BUILD_DIR
sudo apt-get -qq update
sudo apt-get install -y jq
curl -H "Authorization: token $GITPERM" https://api.github.com/users/PHENOMICAL -I
export VERSION_URL=$(curl -H "Content-Type: application/json" -X POST -d "{\"description\":\"Created through Travis-CI\",\"public\":\"false\",\"files\":{\"version.yml\":{\"content\":\"Branch: ${TRAVIS_BRANCH}\nBuild: ${TRAVIS_BUILD_NUMBER}\nVersion: ${TARGET_VERSION}\"}}}" https://api.github.com/gists | jq -r '.files."version.yml".raw_url')
VERSION_URL=$(curl -H "Content-Type: application/json" -X POST -d "{\"description\":\"Created through Travis-CI\",\"public\":\"false\",\"files\":{\"version.yml\":{\"content\":\"Branch: ${TRAVIS_BRANCH}\nBuild: ${TRAVIS_BUILD_NUMBER}\nVersion: ${TARGET_VERSION}\"}}}" https://api.github.com/gists | jq -r '.files."version.yml".raw_url')
export VERSION_URL
echo -e "Gist successfully deployed! URL: ${VERSION_URL}\n"
echo -e "Finished deploying version info!\n"
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment