From 08503f15d76a5d056a55d548221b27994fadbc2b Mon Sep 17 00:00:00 2001 From: Thomas Bloor Date: Wed, 29 Nov 2017 17:12:18 +0000 Subject: [PATCH] Setup Travis to auto build releases when a tag is created --- .travis.yml | 19 ++++++++++++++++--- src/environments/environment.dev.ts.enc | Bin 0 -> 160 bytes src/environments/environment.prod.ts.enc | 2 ++ 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 src/environments/environment.dev.ts.enc create mode 100644 src/environments/environment.prod.ts.enc diff --git a/.travis.yml b/.travis.yml index 22ae810..13fa1cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,12 +4,25 @@ language: node_js node_js: - 8 before_install: - - openssl aes-256-cbc -K $encrypted_9d2af3734b6c_key -iv $encrypted_9d2af3734b6c_iv -in src/environments/environment.ci.ts.enc -out src/environments/environment.ci.ts -d + - openssl aes-256-cbc -K $encrypted_9d2af3734b6c_key -iv $encrypted_9d2af3734b6c_iv -in src/environments/environment.ci.ts.enc -out src/environments/environment.ci.ts -d before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start - npm config set spin false install: - - npm install + - npm install script: - - npm run ci + - npm run ci +before_deploy: + - openssl aes-256-cbc -K $encrypted_9d2af3734b6c_key -iv $encrypted_9d2af3734b6c_iv -in src/environments/environment.prod.ts.enc -out src/environments/environment.prod.ts -d + - openssl aes-256-cbc -K $encrypted_9d2af3734b6c_key -iv $encrypted_9d2af3734b6c_iv -in src/environments/environment.dev.ts.enc -out src/environments/environment.dev.ts -d + - ./bin/build-releases +deploy: + provider: releases + api_key: + secure: IZKEl1/LnzCN4/uMPKqUktURoNFjDmrybGKwrKbTPS27iXLrC9x4NwrQnOgipLF5h6Jeee4Qf1LhFCEpL/VTBTGMljQU2uOUFqn7TTGV5Ok7wxn2Z4CYeLDHMqDeGEECidAs8pB7I8lQvk5iUqmQT0NbuB0tDgavM9XCAecGUrFHh2tQaqPRGgZ1Q+1QB5d68EItSncMFKgRKja3Jq3u6ArF3uR3qY0dx9UKgcSUkKMnYbkBoEmiuCthdtwsH6WiIp4+K5GnVkGWxFa6KwdUJseHvUCuwS0Jp6lz47fP75xr4pHP45BxL7s549P60Iyr5AMRUge2+LPQV5QdbRH4guQV6qWI2L6Vw64fdC3lK00MhNFNO4M9p1T9eeldXhvUJwBDjzjoHlsrZysUMBy5G9CpQIVJtaPSVMWm/9yfPbu/B3k85cCHLb3fTos3altCWREIUScWIdDAHczJmmITUE9d5KljT8t2gLzCiCqB3BQ6ZzN8Ur68EIJ2ePuCO4644S+1shg5AXYDzXuUd30J57UGnuELQSMQkuZvMUQy8PmNO/iInIqpnuAwOwT4YD0MHgXrjD38a9+KszDjY+9HrIWcQE8P7AuN0iVf2voB5uLTOckkd4mXF9sskwoREVYJM+jz49HViggYyn1MHLsnlY5//vhMo5HNaf2DtT8fhk4= + file_glob: true + file: "../WebApp-Releases/*" + skip_cleanup: true + on: + tags: true diff --git a/src/environments/environment.dev.ts.enc b/src/environments/environment.dev.ts.enc new file mode 100644 index 0000000000000000000000000000000000000000..0e82614abef894788e75785aa41ba9b02b92e593 GIT binary patch literal 160 zcmV;R0AK$k3o%fna7ct{48kUm6^q|Xtx_%UDy{)^t)s43fTt(Y1MGpZ;6U89H^etU z_&A!juf6Mkz^|S`o0HGmghA@nn}&j%{v$bW2BqJr7R{}p+z$F;>Szt_xl2GtK1fi= z>e(*}#@Y{1sROR%CC!8~+VV+v8yD{QJYiED)h$oduwFF3&FCYxlVt3`VIl>ifveDj Os<>grBG};oS$Zi$dQpY| literal 0 HcmV?d00001 diff --git a/src/environments/environment.prod.ts.enc b/src/environments/environment.prod.ts.enc new file mode 100644 index 0000000..f9eabd4 --- /dev/null +++ b/src/environments/environment.prod.ts.enc @@ -0,0 +1,2 @@ +4Q'DUػc+q{E/h)z_k"%ܝ~0M/sl<@];R佨BPs삅Sܿe7A'ObOú +>9+΄ʫaOikwfk+)1 \ No newline at end of file