From c0b6378e49be8f236fa238c0b17f7103dfee256a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Wed, 30 Mar 2016 17:56:56 +0200 Subject: [PATCH] Updated package template. * Add 6.4 version, as this is now the default one to download on the website. * raco doc <> should use raco docs <> * raco is now on the PATH, remove warning * Change `raco setup --check-deps <>` to `raco setup --check-pkg-deps --pkgs <>` (the former seems obsolete). * Move `raco pkg install --deps search-auto` to the `install:` section, so that it is done before running the tests * Move `raco pkg install --deps search-auto cover`, to the `after_success section`, since `raco cover` is run there. * Fixed .travis.yml syntax (wrong indentation for fields under "matrix:") * Clone https://github.com/greghendershott/travis-racket.git to a separate directory, not a subdirectory of the current package, as this can cause problems (see https://travis-ci.org/jsmaniac/type-expander/jobs/121099218#L824) --- racket/collects/pkg/private/new.rkt | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/racket/collects/pkg/private/new.rkt b/racket/collects/pkg/private/new.rkt index 14edbefda6..fa3fcc00b9 100644 --- a/racket/collects/pkg/private/new.rkt +++ b/racket/collects/pkg/private/new.rkt @@ -87,7 +87,8 @@ EOS \#* .\#* .DS_Store -compiled +compiled/ +/doc/ EOS ))) @@ -122,34 +123,33 @@ env: - RACKET_VERSION=6.1.1 - RACKET_VERSION=6.2 - RACKET_VERSION=6.3 + - RACKET_VERSION=6.4 - RACKET_VERSION=HEAD matrix: allow_failures: - env: RACKET_VERSION=HEAD - fast_finish: true +# - env: RACKET_VERSION=HEAD + fast_finish: true before_install: -- git clone https://github.com/greghendershott/travis-racket.git -- cat travis-racket/install-racket.sh | bash # pipe to bash not sh! +- git clone https://github.com/greghendershott/travis-racket.git ~/travis-racket +- cat ~/travis-racket/install-racket.sh | bash # pipe to bash not sh! - export PATH="${RACKET_DIR}/bin:${PATH}" #install-racket.sh can't set for us install: + - raco pkg install --deps search-auto before_script: -# Here supply steps such as raco make, raco test, etc. Note that you -# need to supply /usr/racket/bin/ -- it's not in PATH. You can run -# `raco pkg install --deps search-auto <>` to install any required +# Here supply steps such as raco make, raco test, etc. You can run +# `raco pkg install --deps search-auto` to install any required # packages without it getting stuck on a confirmation prompt. script: - - raco pkg install --deps search-auto cover - raco test -x -p <> after_success: - - raco setup --check-deps <> - - raco pkg install --deps search-auto cover-coveralls - - raco pkg install --deps search-auto + - raco setup --check-pkg-deps --pkgs <> + - raco pkg install --deps search-auto cover cover-coveralls - raco cover -b -f coveralls -d $TRAVIS_BUILD_DIR/coverage . EOS @@ -196,7 +196,7 @@ EOS ;; To uninstall: ;; $ raco pkg remove <> ;; To view documentation: -;; $ raco doc <> +;; $ raco docs <> ;; ;; For your convenience, we have included a LICENSE.txt file, which links to ;; the GNU Lesser General Public License.