Browse Source

move openssl_key/iv syncing into before_travis script

John Regan 7 years ago
parent
commit
bb6944cb0f
2 changed files with 18 additions and 12 deletions
  1. 0 12
      .travis.yml
  2. 18 0
      .travis.yml.before_install

+ 0 - 12
.travis.yml

@@ -1,16 +1,4 @@
 before_install:
-- gem install travis -v 1.8.8
-- travis login --org --github-token $GITHUB_TOKEN
-- travis endpoint --org --set-default
-- sync
-- travis whoami
-- travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/PRoot
-- travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/qemu
-- travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/musl-cross-make
-- travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/skaware
-- travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/busybox-chroots
-- travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/socklog-overlay
-- travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/socklog
 - bash -e ${TRAVIS_BUILD_DIR}/.travis.yml.before_install
 install:
 - bash -e ${TRAVIS_BUILD_DIR}/.travis.yml.install

+ 18 - 0
.travis.yml.before_install

@@ -11,3 +11,21 @@ openssl aes-256-cbc -K $OPENSSL_KEY -iv $OPENSSL_IV -in keys.tar.xz.enc -out key
 tar xf keys.tar.xz
 gpg --import keys/public.key
 gpg --allow-secret-key-import --import keys/private.key
+
+if [[ -z "$GITHUB_TOKEN" ]] ; then
+    exit 0
+fi
+
+# sync up vars for decoding keys on other projects
+
+gem install travis -v 1.8.8
+travis login --org --github-token $GITHUB_TOKEN
+travis endpoint --org --set-default
+travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/PRoot
+travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/qemu
+travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/musl-cross-make
+travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/skaware
+travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/busybox-chroots
+travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/socklog-overlay
+travis env copy OPENSSL_IV OPENSSL_KEY --repo just-containers/socklog
+