@@ -16,13 +16,12 @@ services:
1616before_install :
1717 - docker-compose up -d
1818 - |
19- jq --version
2019
21- source testdata/credentials.sh
20+ jq --version
2221
2322 ctr=0
2423 max_retries=30
25- while [ $(curl -I -u "${GITLAB_USERNAME}:${GITLAB_PASSWORD}" ${GITLAB_HTTP_URL} /users/sign_in | head -1 | grep 200 | wc -l | tr -d ' ') -ne 1 ]; do
24+ while [ $(curl -I -u "root:123qwe123" http://localhost:10080 /users/sign_in | head -1 | grep 200 | wc -l | tr -d ' ') -ne 1 ]; do
2625 ctr=`expr $ctr + 1`
2726 echo waiting for gitlab to come up
2827 sleep 10
@@ -31,17 +30,34 @@ before_install:
3130 exit 1
3231 fi
3332 done
34- echo "============ setting up test data ============="
33+
34+ ###################################################
35+ # WARM UP TIME (don't mind me)
36+ ###################################################
37+ sleep_time=100
38+ echo "sleeping for ${sleep_time} seconds"
39+ sleep ${sleep_time}
40+ source testdata/credentials.sh
3541 env | grep GITLAB
42+ ###################################################
43+
44+ echo "============ setting up test data ============="
3645 GITLAB_USERNAME=$GITLAB_USERNAME GITLAB_PASSWORD=$GITLAB_PASSWORD GITLAB_HTTP_URL=$GITLAB_HTTP_URL ./testdata/seeder.sh
3746 echo "============ test data completed ============="
47+ - go get github.com/golang/lint/golint
48+ - make getdep
3849
3950script :
40- - go get github.com/golang/lint/golint
4151 - golint -set_exit_status ./...
4252 - |
4353 source testdata/credentials.sh
44- make coverage
54+ go run main.go get users
55+ go run main.go get groups
56+ go run main.go get projects
57+ travis_wait 30 make coverage
58+
59+ after_script :
60+ - sleep 1
4561
4662after_success :
4763 - bash <(curl -s https://codecov.io/bash) # Set CODECOV_TOKEN in your environment variables.
0 commit comments