-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
35 lines (35 loc) · 1.23 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
language: java
jdk:
- oraclejdk8
env:
matrix:
- TESTS=OGC_TESTS
- TESTS=API
global:
- SSH_KEY="id_rsa"
- GIT_NAME="Isabel Rios"
- GIT_EMAIL="[email protected]"
- DEPLOY_BRANCH="master"
before_install:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_adf0efbba173_key -iv $encrypted_adf0efbba173_iv -in id_rsa.enc -out id_rsa -d; fi
- java -version
- wget https://raw.githubusercontent.com/creationix/nvm/v0.31.0/nvm.sh -O ~/.nvm/nvm.sh
- source ~/.nvm/nvm.sh
- nvm install 6.9.1
- npm install
services:
- postgresql
addons:
postgresql: '9.4'
before_script:
- if [ "$TESTS" = "API" ]; then npm run test; fi
- if [ "$TESTS" = "OGC_TESTS" ]; then npm run example & fi
script:
- if [ "$TESTS" = "OGC_TESTS" ]; then source ./scripts/OGC_tests/install_tests.sh ; fi
- if [ "$TESTS" = "OGC_TESTS" ]; then source ./scripts/preconditions.sh ; fi
- if [ "$TESTS" = "OGC_TESTS" ]; then source ./scripts/OGC_tests/launch_tests.sh ; fi
after_script:
- if [[ "$TESTS" = "OGC_TESTS" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then npm run gh-pages-travis; fi
- if [ "$TESTS" = "OGC_TESTS" ]; then source ./scripts/OGC_tests/check_tests_failures.sh ; fi
after_success:
- if [ "$TESTS" = "API" ]; then npm run coverage ; fi