Skip to content

Commit b76d254

Browse files
committed
Update travis to always use latest release
1 parent 003a7a7 commit b76d254

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.travis.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
language: node_js
22
node_js:
3-
- "0.10"
3+
- 0.10
44
env:
5-
- PATH=$HOME/bin:$PATH purescript_datadir=$HOME/.local/share/purescript
6-
before_install:
7-
- mkdir -p $HOME/bin
8-
- mkdir -p $HOME/.local/share/purescript/prelude
5+
- PATH=$HOME/purescript:$PATH
96
install:
10-
- wget -O $HOME/bin/psc https://github.com/purescript/purescript/releases/download/0.5.6.2/psc
11-
- chmod a+x $HOME/bin/psc
12-
- wget -O $purescript_datadir/prelude/prelude.purs https://github.com/purescript/purescript/releases/download/0.5.6.2/prelude.purs
13-
- "npm install bower grunt-cli -g"
14-
- "npm install"
15-
- "bower install"
7+
- TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
8+
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
9+
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
10+
- chmod a+x $HOME/purescript
11+
- npm install bower grunt-cli -g
12+
- npm install
13+
- bower install
1614
script:
17-
- "grunt examples"
15+
- grunt examples

0 commit comments

Comments
 (0)