Update js-array, sh, travis

This commit is contained in:
Rico Sta. Cruz 2015-10-15 18:55:41 +08:00
parent ec61195952
commit 8a3ba8d402
3 changed files with 45 additions and 35 deletions

View File

@ -29,6 +29,7 @@ layout: default
array.concat([X,Y]) //=> [_,_,_,_,_,X,Y] array.concat([X,Y]) //=> [_,_,_,_,_,X,Y]
### Inserting ### Inserting
// after -- [_,_,REF,NEW,_,_] // after -- [_,_,REF,NEW,_,_]
array.splice(array.indexOf(REF)+1, 0, NEW)) array.splice(array.indexOf(REF)+1, 0, NEW))

11
sh.md
View File

@ -235,8 +235,7 @@ or
### Getting options ### Getting options
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in
case $1 in
-V | --version ) -V | --version )
echo $version echo $version
exit exit
@ -247,14 +246,8 @@ or
-f | --flag ) -f | --flag )
flag=1 flag=1
;; ;;
esac
shift
done
if [[ "$1" == "--" ]]; then shift; fi
# compact
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do; case $1 in
esac; shift; done esac; shift; done
if [[ "$1" == '--' ]]; then shift; fi
### Heredoc ### Heredoc

View File

@ -5,9 +5,11 @@ layout: default
### Node ### Node
```yml
language: node_js language: node_js
node_js: node_js:
- "0.10" - '4'
```
* Provides: 0.10, 0.8, 0.6, 0.11 (latest dev) * Provides: 0.10, 0.8, 0.6, 0.11 (latest dev)
* Defaults install to `npm install` * Defaults install to `npm install`
@ -15,6 +17,7 @@ layout: default
### Ruby ### Ruby
```yml
language: ruby language: ruby
rvm: rvm:
- 2.0.0 - 2.0.0
@ -23,10 +26,23 @@ layout: default
- rbx-19mode - rbx-19mode
- jruby-19mode - jruby-19mode
- jruby-18mode - jruby-18mode
```
* * Defaults install to `bundle install` * Defaults install to `bundle install`
* Defaults test to `rake` * Defaults test to `rake`
### Build lifecycle
* `before_install`
* `install`
* `before_script`
* `script`
* `after_success` or `after_failure`
* `after_script`
* OPTIONAL `before_deploy`
* OPTIONAL `deploy`
* OPTIONAL `after_deploy`
### Branches ### Branches
branches: branches: