-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.33 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
# When a tagged commit is pushed the documentation pages and npm module are published/deployed:
os: linux
# linux dist that includes C++ compiler needed for native node modules
dist: focal
language: minimal
services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.27.4
before_install:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- 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 build sqler_oracle_dialect
- docker-compose up -d
- docker ps -a
- chmod +x test/run.sh
branches:
only:
- master
- "/v*/"
script:
# - printenv
- test/run.sh sqler_oracle sqler_oracle_dialect "npm test"
deploy:
- provider: script
skip_cleanup: true # deprecated, use cleanup with new dpl ver
cleanup: false
script: test/run.sh sqler_oracle sqler_oracle_dialect npm_deploy
on:
tags: true # only on tagging commit
branch:
- /v(\d+\.)?(\d+\.)?(\*|\d+)$/