Fixes travis config by moving out sdist testing script.
parent
cbf1a9869c
commit
094eedc4c9
27
.travis.yml
27
.travis.yml
|
@ -34,26 +34,19 @@ before_install:
|
||||||
# around some quirks in Travis's terminal implementation.
|
# around some quirks in Travis's terminal implementation.
|
||||||
script:
|
script:
|
||||||
- stack $ARGS --no-terminal --install-ghc install --test --fast
|
- stack $ARGS --no-terminal --install-ghc install --test --fast
|
||||||
- cat << EOF > test_sdist.sh
|
- stack $ARGS --no-terminal install cabal-install happy
|
||||||
export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}');
|
- cabal update
|
||||||
cd $(stack path | grep dist-dir | awk '{print $2}');
|
- export PATH=$(stack $ARGS path | grep compiler-bin | awk '{print $2}'):$PATH
|
||||||
if [ -f "$SRC_TGZ" ]; then
|
- stack $ARGS sdist ringo-core
|
||||||
cabal install "$SRC_TGZ";
|
- cd ringo-core
|
||||||
else
|
- ../test_sdist
|
||||||
echo "expected '$SRC_TGZ' not found";
|
- cd $(stack $ARGS path | grep project-root | awk '{print $2}')
|
||||||
exit 1;
|
- stack $ARGS sdist ringo
|
||||||
fi
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- stack sdist ringo-core
|
|
||||||
- cd ringo-core;
|
|
||||||
- sh ../test_sdist.sh
|
|
||||||
- cd $(stack path | grep project-root | awk '{print $2}')
|
|
||||||
- stack sdist ringo
|
|
||||||
- cd ringo
|
- cd ringo
|
||||||
- sh ../test_sdist.sh
|
- ../test_sdist
|
||||||
|
|
||||||
# Caching so the next build will be fast too.
|
# Caching so the next build will be fast too.
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.stack
|
- $HOME/.stack
|
||||||
|
- $HOME/.cabal
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}');
|
||||||
|
cd $(stack $ARGS path | grep dist-dir | awk '{print $2}');
|
||||||
|
if [ -f "$SRC_TGZ" ]; then
|
||||||
|
cabal install "$SRC_TGZ";
|
||||||
|
else
|
||||||
|
echo "expected '$SRC_TGZ' not found";
|
||||||
|
exit 1;
|
||||||
|
fi
|
Loading…
Reference in New Issue