From 9d62634b8575ac18a8e3d367697cd62de6f2cb29 Mon Sep 17 00:00:00 2001 From: Fedor Nezhivoi Date: Fri, 1 Jun 2018 07:57:20 +0300 Subject: [PATCH] fix travis (#72) * fix travis * fix fromatting --- .travis.yml | 20 ++++++++++++-------- src/Time/Iso8601.elm | 1 + src/Time/Iso8601ErrorMsg.elm | 1 + 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7bd78e..5ea83fc 100644 --- a/.travis.yml +++ b/.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 @@ -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 diff --git a/src/Time/Iso8601.elm b/src/Time/Iso8601.elm index 65267a0..ff03bc8 100644 --- a/src/Time/Iso8601.elm +++ b/src/Time/Iso8601.elm @@ -176,6 +176,7 @@ toZonedDateTime timeZone input = {-| toDate parses an ISO8601-formatted date string into a Date. + import Time.Date toDate "1970-12-01" diff --git a/src/Time/Iso8601ErrorMsg.elm b/src/Time/Iso8601ErrorMsg.elm index 9c798bb..e548fa5 100644 --- a/src/Time/Iso8601ErrorMsg.elm +++ b/src/Time/Iso8601ErrorMsg.elm @@ -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