General information

Have GIS add-ons builds nastroeny on GitHub-e, so that the application bildade by Travis and diploidy to branch gh-pages.

the Algorithm setup builds

1.It is necessary to add in the config your prilozheniya next cod:

// Change paths to application assets if the build has been started with the following parameters: 
// ember build --gh-pages --brunch=<brunch-to-publish-on-gh-pages>. 
if (process.argv.indexOf('--gh-pages') >= 0) {
  var brunch;

  // Retrieve name from brunch process arguments. 
  process.argv.forEach(function(value, index) {
    if (value.indexOf('--brunch=') >=0) {
      brunch=value.split('=')[1];
      return;
    }
  });

  // Change base URL to force application assets paths to be relative. 
  ENV.baseURL = '/' + ENV.repositoryName + '/' + brunch + '/';
  ENV.locationType = 'none';
}

2.To add to the project file .travis.yml with next content.

---
language: node_js
node_js:
  - "6.10.3"

sudo: false

cache:
  directories:
    - node_modules

env:
  - EMBER_TRY_SCENARIO=default
  - EMBER_TRY_SCENARIO=ember-release

matrix:
  fast_finish: true
  allow_failures:
    - env: EMBER_TRY_SCENARIO=ember-release

before_install:
  - npm config set spin false
  - npm install -g npm@^2

install:
  - npm install -g phantomjs-prebuilt
  - npm install -g bower
  - npm install
  - npm rebuild node-sass
  - bower install

script:
  - ember try:one $EMBER_TRY_SCENARIO test

after_success:
  - test $EMBER_TRY_SCENARIO == "default" && test $TRAVIS_PULL_REQUEST == "false" && ember build --gh-pages --brunch=$TRAVIS_BRANCH && bash scripts/deploy-to-gh-pages.sh

3.To add script deploy-to-gh-pages.sh with next soderjaniem In script-e specify my project in the lines 7 and 83

4.To create a branch on GitHub-e -gh-pages.

5.From ember-flexberry-gis-test-stand to copy to the new branch -gh-pages files:

  • .gitignore
  • index.hbs (you need to imanity 12th place)
  • folder images
  • folder stylesheets

6.Enable build on Travis.

7.Be added to the configuration of the build gh-token.