This repository has been archived by the owner on Aug 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
/
.travis.yml
85 lines (78 loc) · 2.51 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
sudo: false
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.1
- cabal-install-1.22
- happy
- alex
- nodejs
- npm
env:
matrix:
- ELM_VERSION=master TARGET_NODE_VERSION=node
- ELM_VERSION=master TARGET_NODE_VERSION=4.0.0
- ELM_VERSION=0.16 TARGET_NODE_VERSION=node
- ELM_VERSION=0.16 TARGET_NODE_VERSION=4.0.0
global:
- secure: "RY4A5Bj0tN7rscwPh6eDJUmf2qWW6lXPBQrD74vg3hB1ubloCRuoXvBD8evUSQg6Kb1D7Dqi3FNpZmt9In7Tiz3Xy6Vb4Q0pbh1r8rq97ZuFFbxzPVRL2QuyYuqQfvsfoal4NVxGyhfTaLh1tCC/G6CjCjGDRXFcqhcz+CR0cEI="
before_install:
- if [ ${TRAVIS_OS_NAME} == "osx" ];
then brew update; brew install cabal-install; brew install nvm; mkdir ~/.nvm; export NVM_DIR=~/.nvm; source $(brew --prefix nvm)/nvm.sh; else
export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH; curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash;
fi
install:
- nvm install $TARGET_NODE_VERSION
- nvm use $TARGET_NODE_VERSION
- node --version
- npm --version
- travis_retry cabal update
before_script:
- if [ ${TRAVIS_OS_NAME} == "osx" ];
then export BINARY_OS_NAME=darwin; else
export BINARY_OS_NAME=$TRAVIS_OS_NAME;
fi
- cd installers
script:
- runhaskell BuildFromSource.hs $ELM_VERSION
- cd Elm-Platform/*/.cabal-sandbox/bin
- ./elm-make --help
- ./elm-repl --help
- ./elm-package install --help
- ./elm-reactor --help
- ./elm make --help
- ./elm repl --help
- ./elm package install --help
- ./elm reactor --help
- cd ../..
- mkdir dist_binaries
- cp .cabal-sandbox/bin/elm* dist_binaries
- du -hs dist_binaries
- tar cvzf binaries.tar.gz dist_binaries
- du -hs binaries.tar.gz
- curl -T binaries.tar.gz -uelmtravis:$BINTRAY_API_KEY https://api.bintray.com/content/elmlang/elm-platform/npm/$ELM_VERSION/$ELM_VERSION/$BINARY_OS_NAME-x64.tar.gz
- cd ../..
- mkdir tmp
- cd tmp
- npm init --yes
- npm install ../npm --no-spin
- node_modules/.bin/elm-make --help
- node_modules/.bin/elm-repl --help
- node_modules/.bin/elm-package install --help
- node_modules/.bin/elm-reactor --help
- node_modules/.bin/elm make --help
- node_modules/.bin/elm repl --help
- node_modules/.bin/elm package install --help
- node_modules/.bin/elm reactor --help
- npm remove elm
- npm install -g ../npm --no-spin
- elm-make --help
- elm-repl --help
- elm-package install --help
- elm-reactor --help
- elm make --help
- elm repl --help
- elm package install --help
- elm reactor --help