This repository has been archived by the owner on Jul 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert Che-Theia factory extension to plugin
eclipse-che/che#11249 Signed-off-by: Sun Tan <sutan@redhat.com>
- Loading branch information
Showing
17 changed files
with
2,166 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,39 @@ | ||
sudo: required | ||
language: node_js | ||
node_js: '8' | ||
node_js: '9' | ||
git: | ||
depth: 1 | ||
cache: | ||
yarn: true | ||
directories: | ||
- che-theia-factory/node_modules | ||
- node_modules | ||
branches: | ||
only: | ||
- master | ||
- /.*/ | ||
env: | ||
global: | ||
- NODE_OPTIONS="--max_old_space_size=4096" | ||
before_install: | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.6.0 | ||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- | ||
- export PATH=$HOME/.yarn/bin:$PATH ; | ||
install: yarn install | ||
script: skip | ||
install: yarn | ||
script: yarn build | ||
jobs: | ||
fast_finish: true | ||
include: | ||
- stage: deploy | ||
os: linux | ||
before_deploy: | ||
- printf "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}\n" >> ~/.npmrc | ||
- | ||
deploy: # WIP env variable is set only in the https://travis-ci.org/theia-demo-plugins/che-theia-factory-extension jobs | ||
- npm version -no-git-tag-version "0.0.1-$(date +%s)" | ||
deploy: | ||
- provider: script | ||
script: echo "deploying master @eclipse-che" && cd che-theia-factory && npm version -no-git-tag-version "0.0.1-$(date +%s)" && npm publish --access public | ||
script: npm publish --access public | ||
on: | ||
all_branches: true | ||
condition: "! -v WIP && ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} == 'master'" | ||
branch: master | ||
skip_cleanup: true | ||
- provider: script | ||
script: echo "deploying all branches @wip-theia" && cd che-theia-factory && find -name "*.*" -type f -exec sed -i 's/\@eclipse-che\/theia-factory-extension/\@wiptheia\/theia-factory-extension/g' {} \; && npm version -no-git-tag-version "0.0.1-${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}-$(date +%s)" && npm publish --access public | ||
on: | ||
all_branches: true | ||
condition: -v WIP | ||
- provider: releases | ||
api-key: $GITHUB_AUTH_TOKEN | ||
name: backend-plugin-$(date +'%F-%T') | ||
file_glob: true | ||
file: ./*.theia | ||
skip_cleanup: true | ||
- provider: script | ||
script: cd che-theia-factory && npm version -no-git-tag-version && npm publish --access public | ||
on: | ||
tags: true | ||
skip_cleanup: true | ||
branch: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
che-theia-factory/src/browser/che-theia-factory-frontend-module.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.