Robert Schäfer
a5c87e0cd5
Add --ci on Travis (it's our ci server 😄 )
2019-01-17 18:03:05 +01:00
Robert Schäfer
94eea091de
Ensure stage builder is used for testing
...
But avoid synced volumes, otherwise the deployment will crash because
Travis cannot clean up files just before entering the deployment.
2018-12-14 23:25:52 +01:00
Robert Schäfer
bef8aa1d6a
Reduce docker image size with multistage build
...
We don't need development dependencies in production. I also added the
BUILD_COMMIT environment variable to the image for convenience.
2018-12-14 22:41:13 +01:00
Robert Schäfer
9f78a96de2
Run babel node instead of nodemon
...
Quote of @appinteractive:
```
Currently we are running nodemon on production which watches for filechanges and consumes much more memory then just node. As nodemon is only for development, I added a build step to compile the application for production and then only run the dist folder with pure node.
```
2018-12-14 22:30:47 +01:00
Robert Schäfer
212725e44d
Minor changes
2018-12-14 20:13:15 +01:00
Robert Schäfer
f2eca183cc
Fix commit hash in deploy URL
...
Executable deploy scripts
2018-12-14 19:48:23 +01:00
Robert Schäfer
fca0a67bfd
Don't user docker-compose.override.yml on Travis
...
It creates volumes and these volumns will change ownership and linux
file permissions. That in turn will prevent Travis from removing those
files and eventually crash the deployment.
2018-12-14 18:30:10 +01:00
Robert Schäfer
2088d4e495
Use deployment script for docker images
...
+Fix deprecation warning of docker login
2018-12-14 18:16:34 +01:00
Grzegorz Leoniec
c4f7787796
merged npm-run-all in
2018-12-08 14:20:06 +01:00
Grzegorz Leoniec
f0c321700e
merged master in
2018-12-08 14:16:11 +01:00
Robert Schäfer
46080fff98
Fix build
2018-12-08 01:58:51 +01:00
Robert Schäfer
d9a7079392
Run seeds and lint in docker-compose
2018-12-08 01:26:13 +01:00
Grzegorz Leoniec
c5a0a68d5f
merged master in
2018-12-07 20:35:43 +01:00
Grzegorz Leoniec
26d55043ed
added testing coverage and codecov config
2018-12-07 20:24:52 +01:00
Robert Schäfer
03d7148958
Run the tests in the docker image
...
Travis lags behind with the current version of docker-compose
2018-12-05 00:37:18 +01:00
Robert Schäfer
1ae09b5a7f
Merge remote-tracking branch 'origin/master' into mochajs
2018-12-05 00:12:42 +01:00
Robert Schäfer
8e462e9cc6
Typo: tagS to deploy only if git tag exists
2018-12-04 01:02:21 +01:00
Robert Schäfer
5eae8a8978
Configure Travis CI conditional builds
...
and add placeholder deployment. This commit should deploy to
* `production` if on branch master AND tagged
* `staging` if on branch master
* `custom` if tagged
The custom deployment is inspired by https://zeit.co/now and should
deploy features for demonstration purposes before merging into master.
It will happen that we trigger multiple deployments with this workflow:
If we deploy to production, that is going to deploy to a custom
environment and to staging. But I think this is not too problematic.
What do you think @appinteractive @mcwimpy?
2018-12-04 00:24:26 +01:00
Robert Schäfer
fa8cbba421
Copy .env.template for dummy secrets on Travis
2018-12-03 20:49:23 +01:00
Robert Schäfer
d201d73670
Run seeds without docker-compose
...
I give up with running docker-compose on Travis CI. Using `bash` instead
of Linux alpine's `sh` does **not** fix the issue as suggested here:
https://github.com/kimmobrunfeldt/concurrently/issues/104
2018-12-03 20:43:42 +01:00
Robert Schäfer
333f181161
Fix typo in .travis.yml
2018-12-03 18:31:46 +01:00
Robert Schäfer
f00dbb67df
Re-add success notification on Discord
...
Why was it disabled in the first place @appinteractive?
2018-12-03 18:06:08 +01:00
Robert Schäfer
0bfe880c21
Use docker-compose for testing on Travis CI
...
Currently running
* seeds
* eslint
2018-12-03 17:28:53 +01:00
Grzegorz Leoniec
c2a4e48446
Use script instead of test key in travis config
2018-11-30 10:29:46 +01:00
Grzegorz Leoniec
6aa711b3ab
fix tests on build
2018-11-30 10:15:17 +01:00
Grzegorz Leoniec
86662eb56c
do not abort on test command
2018-11-30 09:13:13 +01:00
Grzegorz Leoniec
834aae1ed2
removed seeding on build for now
2018-11-29 19:45:35 +01:00
Grzegorz Leoniec
e218773dd5
fixed build by using install instead before_script
2018-11-25 14:23:52 +01:00
Grzegorz Leoniec
80e036c0fb
updated travis build
2018-11-24 12:38:51 +01:00
Grzegorz Leoniec
89d30c01a0
unified travis.yml and prefixed docker image
2018-11-24 12:10:50 +01:00
Robert Schäfer
d74aa6dd02
Build and run docker container on Travis
...
The docker container environment should be the single source of truth
2018-11-23 20:45:17 +01:00
Grzegorz Leoniec
2f67cfc741
fixed tag
2018-11-23 16:09:59 +01:00
Grzegorz Leoniec
e5b89dc1c6
Added travis configuration
2018-11-23 16:08:02 +01:00