Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 1 addition & 32 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,4 @@
sudo: false

cache:
directories:
- test/elm-stuff/build-artifacts
- sysconfcpus

language: node_js

node_js:
- "4.3"

before_install:
- if [ ${TRAVIS_OS_NAME} == "osx" ];
then brew update; brew install nvm; mkdir ~/.nvm; export NVM_DIR=~/.nvm; source $(brew --prefix nvm)/nvm.sh;
fi
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- | # epic build time improvement - see https://github.com/elm-lang/elm-compiler/issues/1473#issuecomment-245704142
if [ ! -d sysconfcpus/bin ];
then
git clone https://github.com/obmarg/libsysconfcpus.git;
cd libsysconfcpus;
./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus;
make && make install;
cd ..;
fi

install:
- npm install -g [email protected] elm-test
- mv $(npm config get prefix)/bin/elm-make $(npm config get prefix)/bin/elm-make-old
- printf '%s\n\n' '#!/bin/bash' 'echo "Running elm-make with sysconfcpus -n 2"' '$TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make-old "$@"' > $(npm config get prefix)/bin/elm-make
- chmod +x $(npm config get prefix)/bin/elm-make
language: elm

script:
- bash tests/run-tests.sh
4 changes: 1 addition & 3 deletions tests/elm.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"type": "application",
"source-directories": [
"src"
],
"source-directories": [],
"elm-version": "0.19.0",
"dependencies": {
"direct": {
Expand Down
7 changes: 3 additions & 4 deletions tests/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ set -o nounset;

#let the caller supply an ELM_TEST binary if desired
if [ ! -v ELM_TEST ]; then
npm install elm-test;
ELM_TEST=node_modules/elm-test/bin/elm-test;
ELM_TEST=elm-test;
fi

# since elm/core is treated specially by the compiler (it's always
Expand Down Expand Up @@ -49,9 +48,9 @@ VERSION_DIR="$(ls ${ELM_HOME}/0.19.0/package/elm/core/)"
CORE_PACKAGE_DIR="${ELM_HOME}/0.19.0/package/elm/core/$VERSION_DIR"
CORE_GIT_DIR="$(dirname $PWD)"

echo;
echo;
echo "Linking $CORE_PACKAGE_DIR to $CORE_GIT_DIR"
echo;
echo;
rm -rf "$CORE_PACKAGE_DIR"
ln -sv "$CORE_GIT_DIR" "$CORE_PACKAGE_DIR"
rm -vf "${CORE_GIT_DIR}"/*.dat "${CORE_GIT_DIR}"/doc*.json
Expand Down