-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 1.21 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
sudo: required
dist: trusty
group: edge
env:
DOCKER_COMPOSE_VERSION: 1.11.2
services:
- docker
before_install:
- rvm install ruby-2.4.0
- rvm use 2.4.0
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- /bin/sh -c "/bin/bash prepare_project.sh"
- docker-compose -f docker-compose.yml build
- sleep 1
- docker-compose -f docker-compose.yml up -d
- sleep 5
script:
- docker-compose -f docker-compose.yml run system /bin/sh -c "cd /opt/app/culturaaccesible-system; touch travis.ci; bundle install --jobs 3; gem install bundle; bundle exec rake test" -d
- sleep 1
- cd test-app; touch travis.ci
- sudo gem install bundler -v 1.14.6; sudo bundle install --path vendor --jobs 3
- rake start
- sleep 1
after_script:
- docker-compose down
#notifications:
# slack:
# template:
# - "Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of %{repository}@%{branch} by %{author} %{result} in %{duration}"
# rooms:
# - devscola:l7PXPT2ycwSwtbwNI8Bd1hEb#fc_travis