-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (42 loc) · 1.9 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
language: ruby
rvm:
- 2.3.0
services:
- docker
addons:
apt:
packages:
- chromium-chromedriver
cache:
bundler: true
yarn: true
before_install:
- nvm install 4
- nvm use 4
- yarn global add bower ember-cli
before_script:
- bundle exec rake db:migrate RAILS_ENV=test
- cd frontend && yarn install && cd ..
- export PATH=$PATH:/usr/lib/chromium-browser/
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- bundle exec rake
- bundle exec rake ember:test
# Test e2e against docker image
- RAILS_ENV=production PRECOMPILE=1 bin/rails assets:precompile
- docker build -t "singularitiesorg/circular-work" .
- docker-compose up -d
# Wait for the db to start
- sleep 10
- DATABASE_URL=postgresql://postgres:dbpass@localhost:8054/postgres?pool=10 bundle exec rake db:schema:load
- DATABASE_URL=postgresql://postgres:dbpass@localhost:8054/postgres?pool=10 bundle exec rake cucumber
after_success:
- docker tag singularitiesorg/circular-work "singularitiesorg/circular-work:$TRAVIS_COMMIT"
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker push "singularitiesorg/circular-work:$TRAVIS_COMMIT"
after_failure:
- docker-compose logs app
notifications:
webhooks:
- secure: jBARkLflfrZLzYu/qYIK3o90JXyXJEM/lkYsTjch1A0B2u+wndbrF9QBmjjGTVk87RoYj7D4VK5lftayuzSt7Nf7D9I5ysKmjCU0ZixYc6SE1pHQTjpt9HqVyFE7zStdqdjb+3PZH/wDLOE83jpA7TjXu6Py0tPv5Qg2klty73UUlSRCmt/bpzx6vpL9ECVQ3e8j9WR1WXKSsQ4YCrYD5Ts0IOxa9uGwKq9C9O9V7+CyRTjuqMdwzyE1jowuJAxxEq0K9uL0oFg0xNN1DvouGQ6ehJ2ZoAqeWdgJMaQ+/SpynfxnM6C3AwhJNs6c+e4yqYp7Ka3CtFmvK/v+jmegTAyvFjoHQHqwo8ouvXHulEjFSPKGiseIKGGRZfzCsTR64FdJ7PPl3IBWKeRNbkKUB6JTAFJWhAXS6LNjvhYEVh4tpge0ZKQCOv215OvcV0vCTSAnFLWr9qxYx08FlC6Nzlea0NNArLs/SrHq8ySVsCLXcqn2snauJTrNZplbPQPzplXCjLnDCeoBlc/I5j6QGGeF6K0j3w/jHuHTvrhFt7hsgYQyYAYoJcLNvhUmGe6DEFKuUiCFoLHHwvf6qydqwrf5Qjl3ysfA58gruBdbGImY2+H12yBLbmyvZcoy3A4GmhElFGDgSeBk1jqRr3xDeoN0Y4H1wtNNbk/1NBKz2iQ=