Skip to content

Instantly share code, notes, and snippets.

View simbas's full-sized avatar

Simon Basset simbas

  • Aix-en-Provence, France
View GitHub Profile
@simbas
simbas / bootstrap.sh
Last active January 28, 2018 15:33
bootstrap
#!/usr/bin/env bash
set -e
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Notes:
#
@simbas
simbas / prepareNextIteration.sh
Last active December 3, 2018 16:36
prepareNextIteration.sh
#!/usr/bin/env bash
# env vars:
# BRANCH = target branch name
# FRONT_VERSION = infra-front version (entcore in package.json)
# BACK_VERSION = entcore version
#
# usage:
# # in the root folder of an app repository
# BRANCH="v3.3" FRONT_VERSION="~3.3.0-dev" BACK_VERSION="3.3-SNAPSHOT" ~/bin/prepareNextIteration.sh
@simbas
simbas / buildentcore.sh
Created January 10, 2019 13:37
build any branch of entcore for recette
sed -e "s|version=.*|version=$(cat ../recette/gradle.properties | grep entCoreVersion | cut -d "=" -f 2)|g" -i gradle.properties \
&& ./build.sh install \
&& git checkout -- gradle.properties \
&& git checkout -- infra/src/main/resources/public/js/pixi.min.js \
&& rm -fr ../recette/mods/org.entcore\~* \
&& docker restart recette_vertx_1