forked from jdalrymple/gitbeaker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (33 loc) · 1016 Bytes
/
.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
language: node_js
stages:
- lint and build
- test
- release
notifications:
email: false
jobs:
include:
- stage: lint and build
node_js: 10.0.0
script:
- npm run lint
- npm run build
- stage: test
node_js: 10.0.0
before_script:
## Spin up container
- cd test/docker/
- docker-compose -f docker-compose.test.yml up -d
## Test for liveness
# - docker exec -it gitlab bash -lc 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost/-/readiness)" != "200" ]]; do sleep 5; done'
- sleep 240
- export PERSONAL_ACCESS_TOKEN=$(docker exec -it gitlab bash -lc 'printf "%q" "${PERSONAL_ACCESS_TOKEN}"')
- export GITLAB_URL=$(docker exec -it gitlab bash -lc 'printf "%q" "${GITLAB_URL}"')
- echo $GITLAB_URL
- echo $PERSONAL_ACCESS_TOKEN
script:
- npm run test
- stage: release
node_js: 10.0.0
script:
- npm run semantic-release