Skip to content

Commit 7409816

Browse files
authored
.travis.yml Run apt update before snapcraft
Also unify syntax for long command lines. This should fix build failure. See https://forum.snapcraft.io/t/ant-and-others-fails-using-docker-image/7673
1 parent 1e87720 commit 7409816

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
env: EMPTY
2727
before_install: skip
2828
install: skip
29-
script: docker run -v $(pwd):$(pwd) -w $(pwd) snapcore/snapcraft:stable snapcraft
29+
script: >
30+
docker run -v $(pwd):$(pwd) -w $(pwd) snapcore/snapcraft:stable sh -c "apt
31+
update && snapcraft"
3032
after_success:
3133
- openssl aes-256-cbc -K $encrypted_8b01c2e263fa_key -iv $encrypted_8b01c2e263fa_iv
3234
-in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
@@ -36,6 +38,7 @@ deploy:
3638
'on':
3739
branch: master
3840
provider: script
39-
script: docker run -v $(pwd):$(pwd) -t snapcore/snapcraft:stable sh -c "apt update -qq
41+
script: >
42+
docker run -v $(pwd):$(pwd) -t snapcore/snapcraft:stable sh -c "apt update -qq
4043
&& cd $(pwd) && snapcraft && snapcraft push *.snap --release edge"
4144
skip_cleanup: true

0 commit comments

Comments
 (0)