• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aiidateam / aiida_core / 6079 / 5
74%
develop: 74%

Build:
DEFAULT BRANCH: develop
Ran 10 May 2019 12:37PM UTC
Files 387
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 May 2019 12:21PM UTC coverage: 66.45% (-0.1%) from 66.588%
TEST_AIIDA_BACKEND=django TEST_TYPE="tests"

push

travis-ci

ltalirz
Automate export file migration for `verdi import` (#2820)

Fixes #2739.

Invoke `verdi export migrate` in `verdi import`
if it turns out the export file archive cannot be imported
due to an IncompatibleArchiveVersionError.

The default is to automatically migrate it (via a temporary file).

Introduce the `--non-interactive` flag for `verdi import`.

Add tests for new functionality.

Make sure `--non-interactive` does not print confirm messages.
Make sure old export files are automatically migrated, both local files and from URLs.

Introduce the `--migration`/`--no-migration` choice to force migration, if needed
or avoid automatic migration.
This makes sure that an error code != 0 is still present,
when automatic migration is not performed on old export files.

Following behaviour is expected and implemented:

| `migration` | `non_interactive` | Result |
| ------------- | ---------------------- | ------------- |
| `True`* | `False`* | Query user, migrate|
| `True` | `True` | No query, migrate|
| `False` | `False` | No query, no migrate|
| `False` | `True` | No query, no migrate|

*Default.

Separate code into two utility functions that help to import and migrate.

21783 of 32781 relevant lines covered (66.45%)

0.66 hits per line

Source Files on job 6079.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1757
  • Travis Job 6079.5
  • 2370f744 on github
  • Prev Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on develop (#6077.5)
  • Next Job for TEST_AIIDA_BACKEND=django TEST_TYPE="tests" on develop (#6082.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc