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 /.travis.yml | |
parent | 9df688d80215ed5e247c4f20808156da0a949e34 (diff) |
Make Travis build work
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 32 |
1 files changed, 30 insertions, 2 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 |