Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
eclipse-che/che#11306 add 'travis' ci config
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
  • Loading branch information
evidolob committed Dec 7, 2018
1 parent 2fb3aa9 commit 1747d8e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
yarn-error.log
.DS_Store
49 changes: 49 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
sudo: required
language: node_js
node_js: '8'
git:
depth: 1
cache:
yarn: true
directories:
- extensions/eclipse-che-theia-plugin/node_modules
- node_modules
branches:
only:
- master
env:
global:
- CXX=g++-4.8
- NODE_OPTIONS="--max_old_space_size=4096"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- oracle-java9-set-default
- libsecret-1-dev
chrome: stable
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
- export PATH=$HOME/.yarn/bin:$PATH ;
install: yarn
script: travis_retry yarn test ;
jobs:
fast_finish: true
allow_failures:
- os: osx
include:
- stage: deploy
before_script: skip
script: skip
install: skip
before_deploy:
- printf "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}\n" >> ~/.npmrc
- yarn
deploy:
provider: script
script: yarn run publish:next
on:
branch: master
skip_cleanup: true
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"lerna": "^3.5.0"
},
"scripts": {
"prepare": "lerna run prepare"
"prepare": "lerna run prepare",
"publish:next": "lerna publish --registry=https://registry.npmjs.org/ --exact --canary=next --npm-tag=next --force-publish --skip-git --yes"
},
"workspaces": [
"extensions/*",
Expand Down

0 comments on commit 1747d8e

Please sign in to comment.