canonical / core18

The core18 base snap
14 stars 26 forks source link

Fix travis CI, switch it to xenial, enable non-bionic builds #14

Closed sil2100 closed 6 years ago

sil2100 commented 6 years ago

First, this change switches the travis CI env from trusty to xenial + silences a small shellcheck warning. Most importantly though we also modify the stage and prime steps to no longer make them segfault on non-bionic systems. There seems to be an incompatibility in glibc between what we have in the bootstrapped part and the host system. Since snapcraft by default includes the part's install directories in both LD_LIBRARY_PATH and PATH, this causes chaos and results in everything segfaulting. As a workaround we override the stage and prime steps to not use the part's paths at all as we don't actually need them.

sil2100 commented 6 years ago

CI is still failing but due to actual test errors, not infrastructure. I personally would prefer to fix those as a separate PR.

sil2100 commented 6 years ago

Fix for the failing ABI test: https://github.com/snapcore/core18/pull/15