-
Notifications
You must be signed in to change notification settings - Fork 151
/
.travis.yml
35 lines (30 loc) · 963 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
branches:
only:
- master
- preprod
language: node_js
node_js:
- 16
services:
- docker
install: skip
before_script:
- touch .env
- touch ./config/env.json
- node ./scripts/setupTestEnv.js
- docker build -t aquilacms/aquilacms .
- docker pull mongo
script:
- docker network create aquila
- docker run -d --name mongo -p 27017:27017 --network=aquila mongo
- docker exec -i mongo sh -c 'mongorestore --archive --drop' < ./test/data/test/archive
- docker run -d --name aquilacms -p 127.0.0.1:3050:3050/tcp --network=aquila aquilacms/aquilacms
- docker exec -i -e PORT=3051 aquilacms npm run test
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL