Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
fix travis (#72)
Browse files Browse the repository at this point in the history
* fix travis

* fix fromatting
  • Loading branch information
gyzerok authored and oldfartdeveloper committed Jun 1, 2018
1 parent ed75b65 commit 9d62634
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .travis.yml
@@ -1,19 +1,13 @@
language: node_js
node_js: node


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

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
- | # epic build time improvement - see https://github.com/elm-lang/elm-compiler/issues/1473#issuecomment-245704142
if [ ! -d sysconfcpus/bin ];
then
Expand All @@ -23,5 +17,15 @@ before_install:
make && make install;
cd ..;
fi
install:
- npm install -g elm elm-test@0.18.6
- npm install -g elm@0.18.0 elm-test@0.18.12 elm-verify-examples@2.3.1 elm-format@0.6.1-alpha
- 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
- elm-package install --yes

script:
- elm-format --validate src tests examples
- elm-test
- elm-verify-examples
1 change: 1 addition & 0 deletions src/Time/Iso8601.elm
Expand Up @@ -176,6 +176,7 @@ toZonedDateTime timeZone input =


{-| toDate parses an ISO8601-formatted date string into a Date.
import Time.Date
toDate "1970-12-01"
Expand Down
1 change: 1 addition & 0 deletions src/Time/Iso8601ErrorMsg.elm
Expand Up @@ -26,6 +26,7 @@ is famous for.

import Parser exposing (Parser, Problem(Fail))


{-| Invoking the renderer. This returns an 'elm compiler-style formatted' error string
import Parser
Expand Down

0 comments on commit 9d62634

Please sign in to comment.