diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-05-15 23:23:58 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-05-17 00:05:35 +0300 |
commit | c9cf37ca53a4b6f212e2cf34fb2e8702bd6a94bc (patch) | |
tree | a8b4e7233ce90180fb7f80d70da996b3c423eae4 | |
parent | 9df688d80215ed5e247c4f20808156da0a949e34 (diff) |
Make Travis build work
-rw-r--r-- | .travis.yml | 32 | ||||
-rw-r--r-- | github_deploy_key1.enc | bin | 3408 -> 0 bytes | |||
-rw-r--r-- | github_deploy_key_linux.enc | bin | 0 -> 3408 bytes | |||
-rw-r--r-- | github_deploy_key_osx.enc | bin | 0 -> 3408 bytes | |||
-rw-r--r-- | github_deploy_key_windows.enc | bin | 0 -> 3408 bytes | |||
-rw-r--r-- | testmodBuilder/build/main.go | 2 |
6 files changed, 31 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 2c959f5..416c33b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,21 @@ env: global: - GO111MODULE=on - GOPROXY="https://proxy.golang.org" + +matrix: + include: + - os: linux + env: + - K=$encrypted_8df8c5cb3fb6_key + - IV=$encrypted_8df8c5cb3fb6_iv + - os: osx + env: + - K=$encrypted_6d9c893e872c_key + - IV=$encrypted_6d9c893e872c_iv + - os: windows + env: + - K=$encrypted_bd59bad23324_key + - IV=$encrypted_bd59bad23324_iv go: - 1.12.x @@ -14,8 +29,21 @@ git: notifications: email: false -before_install: - - openssl aes-256-cbc -K $encrypted_52681b3983bc_key -iv $encrypted_52681b3983bc_iv -in github_deploy_key1.enc -out github_deploy_key -d +before_script: + - git config --global user.email "hugo-ci@gohugo.io" + - git config --global user.name "Hugo CI" + - >- + openssl aes-256-cbc + -K $K + -iv $IV + -in github_deploy_key_$TRAVIS_OS_NAME.enc + -out github_deploy_key + -d + - chmod 600 github_deploy_key + - eval $(ssh-agent -s) + - ssh-add github_deploy_key + - mkdir -p ~/.ssh + - echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config script: - cd testmodBuilder/build - go run main.go diff --git a/github_deploy_key1.enc b/github_deploy_key1.enc Binary files differdeleted file mode 100644 index 49ae8c8..0000000 --- a/github_deploy_key1.enc +++ /dev/null diff --git a/github_deploy_key_linux.enc b/github_deploy_key_linux.enc Binary files differnew file mode 100644 index 0000000..5a536e5 --- /dev/null +++ b/github_deploy_key_linux.enc diff --git a/github_deploy_key_osx.enc b/github_deploy_key_osx.enc Binary files differnew file mode 100644 index 0000000..5fb558e --- /dev/null +++ b/github_deploy_key_osx.enc diff --git a/github_deploy_key_windows.enc b/github_deploy_key_windows.enc Binary files differnew file mode 100644 index 0000000..d8c5231 --- /dev/null +++ b/github_deploy_key_windows.enc diff --git a/testmodBuilder/build/main.go b/testmodBuilder/build/main.go index 2c0960a..3feede9 100644 --- a/testmodBuilder/build/main.go +++ b/testmodBuilder/build/main.go @@ -113,7 +113,7 @@ func (b *mb) clean() error { // The clean script will be run with the target repo's PWD, so // we need to make the path absolute. dir, _ := os.Getwd() - if err := b.run(filepath.Join(dir, "clean.sh")); err != nil { + if err := b.run("bash", filepath.Join(dir, "clean.sh")); err != nil { return err } |