Comments (1)
I can call trigger leafpad subsurface
to start parallel builds of these two applications.
#!/bin/bash
# Trigger builds on travis using GitHub username and password
# https://docs.travis-ci.com/api?http#creating-a-temporary-github-token
set +e
USERNAME=probonopd
PROJECT=AppImages
USER_AGENT='Travis/1.8.0 (Compatible; curl '$(curl --version | head -n 1 | cut -d " " -f 1-4)')'
echo $@
MATRIX=""
for RECIPE in $@ ; do
MATRIX="\"RECIPE=$RECIPE\",$MATRIX"
done
MATRIX=$(echo -n $MATRIX | head -c -1 ) # Remove extra comma at the end
read -s -p "GitHub Password: " PASSWORD
if [ "$PASSWORD" == "" ] ; then
exit 1
else
echo ""
fi
#########################################################
echo "Delete the GitHub authorization at the end"
#########################################################
trap atexit EXIT
atexit()
{
set +e
RESL=$(curl -u $USERNAME:$PASSWORD -k -s -X DELETE \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
$GH_AUTH_URL)
echo $RESL
}
#########################################################
echo "Create a temporary GitHub authorization"
#########################################################
body='{
"scopes": [
"read:org", "user:email", "repo_deployment",
"repo:status", "write:repo_hook"
],
"note": "temporary token to auth against travis"
}'
RES1=$(curl -k -u $USERNAME:$PASSWORD -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d "$body" \
https://api.github.com/authorizations)
echo $RES1
GH_TOKEN=$(echo $RES1 | grep -Po '"token":.*?[^\\]",' | cut -d '"' -f 4 | head -n 1)
GH_AUTH_URL=$(echo $RES1 | grep -Po '"url":.*?[^\\]",' | cut -d '"' -f 4| head -n 1)
#########################################################
echo "Get a travis token using the GitHub token"
#########################################################
RES2=$(curl -A "$USER_AGENT" -k -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"github_token":"'$GH_TOKEN'"}' \
https://api.travis-ci.org/auth/github)
echo $RES2
TRAVIS_TOKEN=$(echo $RES2 | cut -d '"' -f 4 | head -n 1)
echo $TRAVIS_TOKEN
[ $TRAVIS_TOKEN == "error" ] && exit 1
#########################################################
echo "Trigger a build"
#########################################################
body='{
"request": {
"message": "Build triggered by api request",
"branch":"master",
"config": {
"env": {
"matrix": ['$MATRIX']
}
}
}
}'
echo $body
curl -A "$USER_AGENT" -k -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $TRAVIS_TOKEN" \
-d "$body" \
https://api.travis-ci.org/repo/$USERNAME%2F$PROJECT/requests
from pkg2appimage.
Related Issues (20)
- Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding HOT 3
- Observing the instructions as showcase ends up with no production of AppImage HOT 3
- Specific build for package HOT 5
- How to export H264 in a VLC AppImage? HOT 1
- pkg2appimage failed to parse Depends field in deb package
- libpango-1.0.so.0: undefined symbol: hb_ot_layout_get_horizontal_baseline_tag_for_script HOT 10
- Local Ubuntu jammy and onwards .deb cannot be installed from "debs:" recipe section due to zstd compression HOT 2
- armhf question
- pkg2appimage won't work in opensuse tumbleweed HOT 1
- Issue using pkg2appimage in Docker during AppImage generation
- Google Chrome not working on Debian stable HOT 2
- libgvfscommon.so: undefined symbol: g_task_set_name HOT 5
- libthai in excludelist causes problems HOT 18
- `appdir-lint.sh` need to detect `*.metainfo.xml` if `*appdata.xml` not availiable HOT 5
- Migrate from Travis CI to GitHub Actions HOT 1
- Unable to create appimage files within ubuntu-18.04 since ~2023-09-12 HOT 4
- Remove libp11-kit.so from excludelist if possible HOT 9
- libpango-1.0.so.0: undefined symbol: g_memdup2
- VScode.yml recipe update HOT 1
- Fritzing links are outdated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkg2appimage.