Skip to content

Commit

Permalink
use nvm instead of specified node version
Browse files Browse the repository at this point in the history
  • Loading branch information
bndynet committed Oct 21, 2017
1 parent 11462b0 commit 79112d9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
23 changes: 13 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@ node {

try {

stage('Env') {
sh 'node -v'
sh 'npm -v'
sh 'yarn --version'
}

stage('Pull code') {
checkout scm
}

stage('Install dependencies') {
sh ''' #!/bin/bash -e
. ~/.nvm/nvm.sh
nvm --version
'''
/*
sh 'node -v'
sh 'npm -v'
sh 'npm prune'
sh 'yarn'
*/
nvm('version': 'v6.11.2') {
sh 'node -v'
sh 'npm -v'
sh 'npm prune'
sh 'npm install -g yarn@0'
sh 'yarn'
}
}

/*
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
$$$$$$/


# FRONTEND [![Build Status](https://travis-ci.org/bndynet/frontend.svg?branch=master)](https://travis-ci.org/BndyNet/frontend)
# FRONTEND [![Build Status](https://travis-ci.org/bndynet/frontend.svg?branch=master)](https://travis-ci.org/bndynet/frontend)

An admin template project featuring Angular 4, Angular Material, TypeScript and Webpack 2.
An admin template project featuring Angular 4, Angular Material, TypeScript and Webpack.

![](https://raw.githubusercontent.com/bndynet/frontend/master/screenshots/form.png)

Expand All @@ -38,6 +38,13 @@ yarn or yarn install
yarn start
```

### CI Service

1. `docker pull bndynet/jenkins` to host your Jenkins.
1. Create item typed **Pipeline** and **Pipeline script from SCM** in Jenkins.
1. Fill git settings.
1. Now, you can trigger the building.

### Misc
**if you're in China use cnpm https://github.com/cnpm/cnpm**

Expand Down

0 comments on commit 79112d9

Please sign in to comment.