This project produces the CLARIN Horizon subtheme for Drupal Bootstrap.
On every tagged commit, Travis CI runs build.sh
and adds the produced artifacts to the respective release item on GitHub.
To edit the subtheme, please use your own fork of this repository.
Mind to enable Travis CI for that project on https://travis-ci.org/profile/YOUR_GITHUB_LOGIN
.
Moreover, you have to have set the secret environment variable DEPLOY_OAUTH_TOKEN
within the Travis CI project settings to the appropriate OAuth token.
The build.sh script does the following:
-
Installs the less compresser/compiler (via npm)
-
Retrieves the Drupal bootstrap theme
-
Uses the 'less starter kit' from that theme as a template by copying it to the distribution directory
~/CLARIN_Horizon
(the.git
directory is removed later on) -
Overlays a fixed set of files from the
sites/all/themes/CLARIN_Horizon
directory (see script for details) -
Imports the bootstrap (LESS) sources into the distribution directory (replacing the existing
boostrap
directory) -
Overlays the
variables.less
file from the CLARIN base style onto the bootstrap source -
Compiles the root LESS file of this modified starter kit in the distribution directory to the main
css/style.css
file -
Compresses the entire distribution directory into a tarball
~/CLARIN_Horizon.tgz