forked from voteamerica/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (39 loc) · 1.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
# Uses Ubuntu 'trusty' distribution
sudo: required
dist: trusty
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.21.2
language: ruby
install:
- 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
- docker-compose version
- echo "slug" $TRAVIS_REPO_SLUG
- echo "branch" $TRAVIS_BRANCH
- echo "pr slug" $TRAVIS_PULL_REQUEST_SLUG
- echo "pr branch" $TRAVIS_PULL_REQUEST_BRANCH
- echo "event" $TRAVIS_EVENT_TYPE
- pwd
- ls $HOME
before_script:
# When this file is on a branch that is used to match a specific frontend branch being developed,
# then specify this front-end branch here
# - ./docker/specific-machine-test-travis.sh cp-front-end R jkbits1/voteamerica.github.io slfsvc-ui-adjust
- cd ./docker
- ./specific-machine-test-travis.sh cp-test-runner R $TRAVIS_REPO_SLUG $TRAVIS_BRANCH $TRAVIS_EVENT_TYPE $TRAVIS_PULL_REQUEST_SLUG $TRAVIS_PULL_REQUEST_BRANCH
- ./specific-machine-test-travis.sh cp-nodejs R $TRAVIS_REPO_SLUG $TRAVIS_BRANCH $TRAVIS_EVENT_TYPE $TRAVIS_PULL_REQUEST_SLUG $TRAVIS_PULL_REQUEST_BRANCH
- ./specific-machine-test-travis.sh cp-pg-server R $TRAVIS_REPO_SLUG $TRAVIS_BRANCH $TRAVIS_EVENT_TYPE $TRAVIS_PULL_REQUEST_SLUG $TRAVIS_PULL_REQUEST_BRANCH
- docker-compose -f ./compose/full-stack-test/docker-compose-test.yml up -d
# permissions needed, two suggestions here
# https://stackoverflow.com/questions/42154912/permission-denied-for-build-sh-file
# https://stackoverflow.com/questions/10516201/updating-file-permissions-only-in-git
# https://stackoverflow.com/questions/14267441/automatically-apply-git-update-index-chmodx-to-executable-files
script:
# - travis_retry ./compose-tests.sh pause-cancel2
- travis_retry ./compose-tests.sh full-tests
after_script:
- docker-compose -f ./compose/full-stack-test/docker-compose-test.yml down