Current Dev State

This commit is contained in:
Tim Lorsbach
2025-06-23 20:13:54 +02:00
parent b4f9bb277d
commit ded50edaa2
22617 changed files with 4345095 additions and 174 deletions

View File

@ -0,0 +1,39 @@
const deployOnce = require('../node_modules/travis-deploy-once')
const makeTest = async function () {
let result
try {
// Options can also be set as environment variables with the same name
result = await deployOnce(
{
// Object passed to https://github.com/pwmckenna/node-travis-ci
travisOpts: {pro: false},
// GitHub oAuth token
GH_TOKEN: process.env.GH_TOKEN,
// Want to control which job is the build leader?
// Set your preferred job id
BUILD_LEADER_ID: 1
}
)
} catch (err) {
// something went wrong, and err will tell you what
console.log(err)
}
if (result === true) {
process.exitCode = 0
console.log(0)
}
if (result === false) {
process.exitCode = 1
console.log(1)
}
if (result === null) {
process.exitCode = 1
console.log(1)
}
return 0
}
makeTest()

33
static/js/ketcher2/node_modules/pem/bin/aftersuccess.sh generated vendored Executable file
View File

@ -0,0 +1,33 @@
#!/bin/bash
set -e
VAR_PUSH=0
for i in "$@" ; do
if [[ $i == "-push" ]] ; then
VAR_PUSH=1
break
fi
done
git config --global user.name "Dexus via TravisCI"
git config --global user.email "github@josef-froehle.de"
git config credential.helper "store --file=.git/credentials"
echo "https://$GH_TOKEN:@github.com" > .git/credentials
git checkout "$TRAVIS_BRANCH" || exit 0
if [[ "${VAR_PUSH}" == "1" ]]
then
OUTPUT=$(node "$(pwd)/bin/aftersuccess.js")
STATUS=$?
echo "${OUTPUT}"
fi
if [[ "${STATUS}" == "0" && "${VAR_PUSH}" == "1" ]]
then
sleep 10
npm run changelog
git add HISTORY.md
git commit -m "Update HISTORY.md via TravisCI" -m "[ci skip]"
git push
fi

View File

@ -0,0 +1,73 @@
#!/bin/bash
set -e
if [ -d "${OPENSSL_DIR}" ]; then
exit 0
fi
NORMALPATH=$(pwd)
sudo apt-get install -y --no-install-recommends curl
case "${LIBRARY}" in
"libressl")
URL1="http://ftp.eu.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${VERSION}.tar.gz"
URL2="http://ftp3.usa.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${VERSION}.tar.gz"
;;
"openssl")
URL1="https://openssl.org/source/openssl-${VERSION}.tar.gz"
URL2="http://mirrors.ibiblio.org/openssl/source/openssl-${VERSION}.tar.gz"
;;
esac
case "${TARGET}" in
"x86_64-unknown-linux-gnu")
OS_COMPILER=linux-x86_64
;;
"i686-unknown-linux-gnu")
OS_COMPILER=linux-elf
OS_FLAGS=-m32
;;
"arm-unknown-linux-gnueabihf")
OS_COMPILER=linux-armv4
export AR=arm-linux-gnueabihf-ar
export CC=arm-linux-gnueabihf-gcc
;;
esac
mkdir -p /tmp/build
cd /tmp/build
OUT=/tmp/openssl.tgz
MAX_REDIRECTS=5
curl -o ${OUT} -L --max-redirs ${MAX_REDIRECTS} "${URL1}" \
|| curl -o ${OUT} -L --max-redirs ${MAX_REDIRECTS} "${URL2}"
tar --strip-components=1 -xzf ${OUT}
case "${LIBRARY}" in
"openssl")
./Configure --prefix="${OPENSSL_DIR}" ${OS_COMPILER} -fPIC -g ${OS_FLAGS} no-shared -static
;;
"libressl")
./configure --prefix="${OPENSSL_DIR}" --disable-shared --with-pic
;;
esac
make "-j$(nproc)"
sudo make install_sw
case "${LIBRARY}" in
"openssl")
if [[ ! -f "${OPENSSL_DIR}/ssl/openssl.cnf" ]]; then sudo mkdir -p "${OPENSSL_DIR}/ssl" && sudo cp apps/openssl.cnf "${OPENSSL_DIR}/ssl/openssl.cnf" ; fi
;;
"libressl")
if [[ ! -f "${OPENSSL_DIR}/ssl/openssl.cnf" ]]; then sudo mkdir -p "${OPENSSL_DIR}/ssl" && sudo cp apps/openssl/openssl.cnf "${OPENSSL_DIR}/ssl/openssl.cnf" ; fi
;;
esac
sudo chmod -Rf 0755 /openssl
cd "${NORMALPATH}"
rm -r -f node_modules && npm i