forked from carymrobbins/intellij-haskforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (42 loc) · 1.39 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: java
jdk:
- openjdk6
- oraclejdk7
install:
- GHC_VER=7.6.3
- CABAL_VER=1.20
- HAPPY_VER=1.19.3
- IDEA_VERSION=13.1.2
- IDEA_TAR=ideaIC-${IDEA_VERSION}.tar.gz
- echo "Installing ghc $GHC_VER, cabal-install $CABAL_VER, happy $HAPPY_VER"
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install -y --force-yes cabal-install-$CABAL_VER ghc-$GHC_VER happy-$HAPPY_VER
- export PATH=/opt/happy/$HAPPY_VER/bin:/opt/ghc/$GHC_VER/bin:/opt/cabal/$CABAL_VER/bin:$PATH
- echo "Installing parser-helper"
- travis_retry git clone https://github.com/pjonsson/parser-helper
- cd parser-helper
- cabal sandbox init
- travis_retry cabal update
- travis_retry cabal install
- export PATH=$(pwd)/.cabal-sandbox/bin:$PATH
- cd ..
- |
if [ -f ~/$IDEA_TAR ]; then
echo "Copying existing IDEA archive."
cp ~/$IDEA_TAR .
else
echo "Downloading IDEA archive."
travis_retry wget http://download.jetbrains.com/idea/$IDEA_TAR -P ~
echo "Copying IDEA archive."
cp ~/$IDEA_TAR .
fi
- echo "Removing existing IDEA installation."
- rm -rf idea-IC-*
- echo "Installing IDEA to idea-IC/"
- tar zxf $IDEA_TAR
- rm -rf $IDEA_TAR
- mv idea-IC-* idea-IC
- echo "Creating build.properties file for ant."
- echo "idea.home=$(pwd)/idea-IC" > build.properties
script: ant