Skip to content

Commit

Permalink
Merge pull request #111 from openwisp/issue109
Browse files Browse the repository at this point in the history
Issue109
  • Loading branch information
hispanico authored Oct 22, 2018
2 parents b55016d + 11a6ec7 commit 426dec9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name: hashicorp/terraform:light
entrypoint:
- '/usr/bin/env'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
before_script:
- wget -O $CI_PROJECT_DIR/terraform.tf https://gitlab.com/snippets/1757951/raw
- rm -rf .terraform
Expand Down
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

services: docker

branches:
only:
- master
if: (type = pull_request) OR (branch = master)

env:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions tests/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ docker exec "${container_id}" curl --insecure -s --head https://localhost/admin/
&& exit 1)

# Check redis is running
sudo docker exec "${container_id}" systemctl status redis-server \
docker exec "${container_id}" systemctl status redis-server \
| grep "Active: active (running)" \
|| sudo docker exec "${container_id}" systemctl status redis \
|| docker exec "${container_id}" systemctl status redis \
| grep "Active: active (running)" \
&& (printf "redis test: pass\n" && exit 0) \
|| (printf "redis test: failed\n"; exit 1)
Expand Down

0 comments on commit 426dec9

Please sign in to comment.