diff --git a/.travis.yml b/.travis.yml index d1d6fdfb..ca83584e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,11 @@ script: export OPENSENSEMAP_API_URL=$OPENSENSEMAP_API_URL_DEV; export OPENSENSEMAP_MAPTILES_URL=$OPENSENSEMAP_MAPTILES_URL_DEV; fi + - if [[ -z "$TRAVIS_TAG" && "$TRAVIS_BRANCH" == "workshop" ]]; then + echo "Lets use the workshop envs"; + export OPENSENSEMAP_API_URL=$WORKSHOP_API_URL; + export OPENSENSEMAP_MAPTILES_URL=$OPENSENSEMAP_MAPTILES_URL; + fi - npm run build - docker build -t $IMAGE_NAME:$TRAVIS_BRANCH-temp . diff --git a/Gruntfile.js b/Gruntfile.js index de6bca7a..fcd61fcb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -175,6 +175,7 @@ module.exports = function (grunt) { '<%= yeoman.app %>/components/calendar.directive.js', '<%= yeoman.app %>/components/badge.directive.js', '<%= yeoman.app %>/components/loader.directive.js', + '<%= yeoman.app %>/components/workshop.directive.js', '<%= yeoman.app %>/components/clipboard.directive.js' ], tasks: [ diff --git a/app/components/workshop.directive.html b/app/components/workshop.directive.html new file mode 100644 index 00000000..ccf19dad --- /dev/null +++ b/app/components/workshop.directive.html @@ -0,0 +1,18 @@ +