forked from DScheglov/ehealth.api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (68 loc) · 3.98 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
language: elixir
git:
depth: 1000
cache:
directories:
- _build
- deps
services:
- docker
- postgresql
addons:
postgresql: "9.6"
apt:
packages:
- postgresql-9.5-postgis-2.3
- docker-ce
elixir:
- 1.6.0
otp_release:
- 20.2.2
notifications:
slack:
rooms:
- secure: "MAZDwNhuRd9NtHMrbVjKwjMZdAACrdKIcJwzNdORnowmYja11WruAOdtjC6N/dlIAlL1vJRlA0BXswg3M44uqt3zHXY7e3JPMfVDpLUH8b/CwdRhNK7N/CnSse7kZ5P7v8AVXk567Jm84b7fhJzGZkobRhT/R2hdPMHA/M50cOObUzY62ZEucROyvuwuDhmJYaZoUGK6X2tOpmxBtf1RQm5rVNFZWXhhtyupn/m2Hy8meTFdEdEyGoCQYtI8BCuD9Pa5XKWwZ28b38ws9ZlKV/kiDpwq0Uz1k+SKlzpo7zVZkEbdCHJF/e6JnetRmpm6i05zQdzMqc3gCC09rbZMlCoSTtcRvGZmE94YaOKd24qJK504ZJzl8PnkaUA3JXVUo4PpZqiA71sBPBe15qpnoURPMqzYKeqTHrNlhYXNBVibncl09OSSSNxBOgH0n2uqeTLS2ZXVpHUEUw6OQ8yQ6tR63qnW27xxSesewxZWvoKDOt1HLkhYAaRR4p/UOI4ae0iyUwAIBvuSH0gviqethMQ+vUWNDlI7bL7CTkiBGCApkHJPL5bPoJIE00LyuA2K7KBJsuv4ojzQ23K4zYaHTNG+7Z/nriePcJFoox1JY74apPf0VQrrPs6nxv6g6mXn9riuaU9g3jUyFwTEKUgd9FfrIHgFHZpV1jF9isByUGY="
on_success: always
env:
global:
- Chart=il
- MIX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83D7lmZPDw1seyhVJ7HJ3ncPMKhyENnGot6bE8oQrs1G5eyuVbK8WK8ByRT1PPxM0K6kZMEzXln2LiuYeVpGUI/bo2rJ75V4yOzb6jqdNdL2wmCp//jy9OzU7Kj4HQlaLd6wgr0snehjX3iCsqh5HhaIwqZnGGdS/JdZI8+qVmNRsjp5EedttKD5CqLhMnVt8oD8GjJB8gpwTB4cdWatO9TBGzImSbqInjvwk48LLNSFPFjokF9gFd9aQ+1ikc2QWa1bOyaXO7YpUmb5h1w0IprrfK9exVkEOaIHh3ovQXo4yNOwIAf0aI7amVdD6zFYIDZtdRJKfH4IN3HfeboN52D+++if6TzfPqguue7lg+0+Obm1HJupNzruOELk="
branches:
except:
- /[0-9]*\.[0-9]*\.[0-9]*/
before_install:
# Expose DB to Docker container
- sudo ./bin/ci/init-db.sh
before_script:
# Extract project name and version from mix.exs
- source ./bin/ci/rel/fetch-project-environment.sh
# Load information about new version
- source ./bin/ci/release/fetch-source-version.sh
# Load information about changelog
- source ./bin/ci/release/fetch-changelog.sh
script:
# Check for versioning error
- ./bin/ci/release/check-version-error.sh || travis_terminate 1
# Increment version in mix.exs
- ./bin/ci/release/put-source-version.sh || travis_terminate 1
# Create release notes log for minor version
- ./bin/ci/release/put-release-notes.sh
# Run all tests except pending ones
- ./bin/mix_tests.sh || travis_terminate 1
# Build Docker container
- ./bin/ci/rel/build-container.sh || travis_terminate 1
# Initialize DB for Docker container
- (cd apps/ehealth && MIX_ENV=dev mix ecto.setup)
# Run Docker container
- sudo ./bin/ci/release/start-container.sh
- sudo ./bin/ci/release/check-container.sh || travis_terminate 1
# Submit Docker container to Docker Hub and create GitHub Release by pushing tag with changelog
- ./bin/ci/rel/push-changes.sh || travis_terminate 1
- echo "Decrypting deploy key..."
- openssl aes-256-cbc -K $encrypted_c996ec964e08_key -iv $encrypted_c996ec964e08_iv -in eHealth-8110bd102a69.json.enc -out eHealth-8110bd102a69.json -d
- sudo ./bin/deploy.sh || travis_terminate 1