Skip to content
/ AppVeyor Public

AppVeyor command-line tools for Node/Sencha when building with CI using AppVeyor

Notifications You must be signed in to change notification settings

tfso/AppVeyor

Repository files navigation

AppVeyor Command-line tools

Installation

npm install -g tfso/appveyor#1.1.162

Requirements

You must have an AppVeyor account. The command lines is supposed to be run by AppVeyor in a build process in build scripts, normally in appveyor.yml configuration.

Yaml

AppVeyor configuration file 'appveyor.yml' can be configured to build Sencha projects by using the command line tool after installing this repository as global package as described above. See below for an example in yaml format, and the usage commands in next topic.

environment:
  nodejs_version: "4"
  SENCHACMD_URL: http://cdn.sencha.com/cmd/6.1.2/jre/SenchaCmd-6.1.2-windows-64bit.zip
  SENCHACMD_REPOSITORY: https://sencharepository.example.com/packages/
branches:
    only:
      - master

skip_tags: true

install:
  - ps: Install-Product node $env:nodejs_version
  - node --version

build_script:
  - echo %APPVEYOR_REPO_COMMIT_MESSAGE%
  - echo %APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED%
  - npm install -g tfso/AppVeyor#1.0.95
  
  - build-sencha install --url %SENCHACMD_URL% --destination c:\tools\sencha-cmd\
  - build-sencha repository tfso %SENCHACMD_REPOSITORY% --sencha-cmd c:\tools\sencha-cmd\sencha.exe
  - build-sencha build --path %APPVEYOR_BUILD_FOLDER% --keepPackageVersion --sencha-cmd c:\tools\sencha-cmd\sencha.exe
  - build-sencha publish %SENCHACMD_REPOSITORY%

Usage

patch-version

  Usage: patch-version [options] <file>

  AppVeyor command-line tool for patching version to a file, defaults to package.json

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -b, --build-version [raw]  Version number in format 0.0.1 where it defaults to env:APPVEYOR_BUILD_VERSION

build-sencha --help

  Usage: build-sencha [options] [command]


  Commands:

    install [options]        The output to STDOUT is the path to sencha cmd, its executable
    repository <name> <url>  Add a remote repository that should be used
    publish [options] [url]  Publishing artifacts of apps and packages to appveyor, but if url is defined will packages be posted to repository instead
    build [options]          Build all packages and apps in a workspace
    *

  AppVeyor command-line tool for building Sencha (ExtJS) projects. Either provide path to sencha command with option, env:SENCHACMD

  Options:

    -h, --help               output usage information
    -V, --version            output the version number
    -c, --sencha-cmd <path>  Path to sencha command, either given by install or environment SENCHACMD, default: sencha.exe

build-sencha install --help

  Usage: install [options]

  Options:

    -h, --help       output usage information
    -u, --url <url>  Url to sencha command sdk

build-sencha repository --help

  Usage: repository [options] <name> <url>

  Add a remote repository that should be used

  Options:

    -h, --help  output usage information

build-sencha build --help

  Usage: build [options]

  Build all packages and apps in a workspace

  Options:

    -h, --help                output usage information
    -p, --path <workspace>    Path to workspace
    -d, --destination <path>  Destination of build directory
    -z, --keepPackageVersion  Flag to keep package version instead of replacing it with appveyor version
    -x, --keepAppVersion      Flag to keep app version instead of replacing it with appveyor version
    -j, --jsb <file>          Old style using the jsb that contains all of your project files

build-sencha publish --help

  Usage: publish [options] [url]

  Publishing artifacts of apps and packages to appveyor, but if url is defined will packages be posted to repository instead

  Options:

    -h, --help              output usage information
    -p, --path <workspace>  Path to workspace

About

AppVeyor command-line tools for Node/Sencha when building with CI using AppVeyor

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •