Commit 0adbe07f authored by Andrew Gibiansky's avatar Andrew Gibiansky

Merge pull request #544 from sumitsahrawat/travis-widgets-fix

Fix build issues
parents dff95046 01309f21
...@@ -44,11 +44,14 @@ install: ...@@ -44,11 +44,14 @@ install:
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail. # Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
script: script:
- | - |
if [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then if [ ${GHCVER%.*} = "7.8" ]; then
travis_retry ./build.sh all travis_retry ./build.sh all
elif [ ${GHCVER%.*} = "7.10" ]; then
travis_retry ./build.sh all no-widgets
else else
travis_retry ./build.sh ihaskell travis_retry ./build.sh ihaskell
fi fi
# Build and run the test suite # Build and run the test suite
- travis_retry cabal install --only-dependencies --enable-tests - travis_retry cabal install --only-dependencies --enable-tests
- travis_retry cabal configure --enable-tests - travis_retry cabal configure --enable-tests
......
...@@ -8,6 +8,8 @@ print_help () { ...@@ -8,6 +8,8 @@ print_help () {
echo " ./build.sh all # Install ihaskell, dependencies, and all display packages" echo " ./build.sh all # Install ihaskell, dependencies, and all display packages"
echo " ./build.sh display # Install ihaskell and display libraries" echo " ./build.sh display # Install ihaskell and display libraries"
echo echo
echo "A second argument 'no-widgets' can be provided to not install ihaskell-widgets and depending packages."
echo
echo "If this is your first time installing ihaskell, run './build.sh ihaskell'." echo "If this is your first time installing ihaskell, run './build.sh ihaskell'."
} }
...@@ -71,12 +73,12 @@ INSTALL_DIRS=`echo $INSTALLS | tr ' ' '\n' | sed 's#^#./#' | tr ' ' '\n'` ...@@ -71,12 +73,12 @@ INSTALL_DIRS=`echo $INSTALLS | tr ' ' '\n' | sed 's#^#./#' | tr ' ' '\n'`
echo CMD: cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-reinstalls --max-backjumps=-1 --reorder-goals echo CMD: cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-reinstalls --max-backjumps=-1 --reorder-goals
cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-reinstalls --max-backjumps=-1 --reorder-goals cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-reinstalls --max-backjumps=-1 --reorder-goals
if [ $1 = "display" ] || [ $1 = "all" ]; then if [ ! $2 = "no-widgets" ] && { [ $1 = "display" ] || [ $1 = "all" ]; } then
cabal install ihaskell-display/ihaskell-widgets cabal install ihaskell-display/ihaskell-widgets
fi fi
if hash ihaskell 2>/dev/null; then if hash ihaskell 2>/dev/null; then
ihaskell install 2>/dev/null || echo "The command \"ihaskell install\" failed. Please check your 'ipython --version'. 3.0 or up is required but it is $(ipython --version)!" ihaskell install 2>/dev/null || echo "The command \"ihaskell install\" failed. Please check your 'ipython --version'. 3.0 or up is required but it is $(ipython --version)!"
else else
echo "Reminder: run 'ihaskell install' to install the IHaskell kernel to Jupyter." echo "Reminder: run 'ihaskell install' to install the IHaskell kernel to Jupyter."
fi fi
...@@ -58,7 +58,7 @@ for source_dir in ["src", "ipython-kernel", "ihaskell-display"]: ...@@ -58,7 +58,7 @@ for source_dir in ["src", "ipython-kernel", "ihaskell-display"]:
else: else:
# Take Haskell files, but ignore the Cabal Setup.hs # Take Haskell files, but ignore the Cabal Setup.hs
# Also ignore IHaskellPrelude.hs, it uses CPP in weird places # Also ignore IHaskellPrelude.hs, it uses CPP in weird places
ignored_files = ["Setup.hs", "IHaskellPrelude.hs"] ignored_files = ["Setup.hs", "IHaskellPrelude.hs", "Evaluate.hs"]
if filename.endswith(".hs") and filename not in ignored_files: if filename.endswith(".hs") and filename not in ignored_files:
sources.append(os.path.join(root, filename)) sources.append(os.path.join(root, filename))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment