aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: df4fad0577090eab3f3abde23a42898e07e7df45 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
cache:
  directories: tmp
language: shell
matrix:
  fast_finish: true
env:
  - NODE=0.10   TYPE=compress
  - NODE=0.10   TYPE=mocha
  - NODE=0.10   TYPE=release/benchmark
  - NODE=0.10   TYPE=release/jetstream
  - NODE=0.12   TYPE=compress
  - NODE=0.12   TYPE=mocha
  - NODE=0.12   TYPE=release/benchmark
  - NODE=0.12   TYPE=release/jetstream
  - NODE=4      TYPE=compress
  - NODE=4      TYPE=mocha
  - NODE=4      TYPE=release/benchmark
  - NODE=4      TYPE=release/jetstream
  - NODE=6      TYPE=compress
  - NODE=6      TYPE=mocha
  - NODE=6      TYPE=release/benchmark
  - NODE=6      TYPE=release/jetstream
  - NODE=8      TYPE=compress
  - NODE=8      TYPE=mocha
  - NODE=8      TYPE=release/benchmark
  - NODE=8      TYPE=release/jetstream
  - NODE=10     TYPE=compress
  - NODE=10     TYPE=mocha
  - NODE=10     TYPE=release/benchmark
  - NODE=10     TYPE=release/jetstream
  - NODE=latest TYPE=compress
  - NODE=latest TYPE=mocha
  - NODE=latest TYPE=release/benchmark
  - NODE=latest TYPE=release/jetstream
before_install:
  - git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
  - . ~/.nvs/nvs.sh
  - nvs --version
install:
  - nvs add node/$NODE
  - nvs use node/$NODE
  - node --version
  - npm --version --no-update-notifier
  - npm install --no-audit --no-optional --no-save --no-update-notifier
script:
  - node test/$TYPE
tainer, though this is currently untested. The test "home-page: Connection refused" in tests/lint.scm still hardcodes port 9999, however. * guix/tests/http.scm (http-server-can-listen?): remove now unused procedure. (%http-server-port): default to port 0, meaning the OS will automatically choose a port. (open-http-server-socket): remove the false statement claiming this procedure is exported and also return the allocated port number. (%local-url): raise an error if the port is obviously unbound. (call-with-http-server): set %http-server-port to the allocated port while the thunk is called. * tests/derivations.scm: adjust test cases to use automatically assign a port. As there is no risk of a port conflict now, do not make any tests conditional upon 'http-server-can-listen?' anymore. * tests/elpa.scm: likewise. * tests/lint.scm: likewise, and add a TODO comment about a port that is still hard-coded. * tests/texlive.scm: likewise. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Maxime Devos 2020-12-02import: utils: 'recursive-import' accepts an optional version parameter....This adds a key VERSION to 'recursive-import' and moves the parameter REPO to a key. This also changes all the places that rely on 'recursive-import'. * guix/import/utils.scm (recursive-import): Add the VERSION key. Make REPO a key. (package->definition): Add optional 'append-version?'. * guix/scripts/import/crate.scm (guix-import-crate): Add the VERSION key. * guix/import/crate.scm (crate->guix-package): Add the VERSION key. (crate-recursive-import): Pass VERSION to recursive-import, remove now unnecessary code. * guix/import/cran.scm (cran->guix-package, cran-recursive-import): Change the REPO parameter to a key. * guix/import/elpa.scm (elpa->guix-package, elpa-recursive-import): Likewise. * guix/import/gem.scm (gem->guix-package, recursive-import): Likewise. * guix/import/opam.scm (opam-recurive-import): Likewise. * guix/import/pypi.scm (pypi-recursive-import): Likewise. * guix/import/stackage.scm (stackage-recursive-import): Likewise. * guix/scripts/import/cran.scm (guix-import-cran): Likewise. * guix/scripts/import/elpa.scm (guix-import-elpa): Likewise. * tests/elpa.scm (eval-test-with-elpa): Likewise. * tests/import-utils.scm (recursive-import): Likewise. Co-authored-by: Hartmut Goebel <h.goebel@crazy-compilers.com> Martin Becze 2020-01-16import: elpa: Rewrite test to use an HTTP server instead of mocking....* guix/import/elpa.scm (elpa-url): Add 'gnu/http'. (elpa->guix-package): Handle it. * tests/elpa.scm (elpa-package-info-mock, auctex-readme-mock) (elpa-version->string, package-source-url, ensure-list) (package-home-page, make-elpa-package): Remove. <top level>: Call '%http-server-port'. (eval-test-with-elpa): Remove uses of 'mock'. Use 'with-http-server' and parameterize 'current-http-proxy' instead. Ludovic Courtès