forked from OpenConext/OpenConext-manage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (39 loc) · 1.05 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
39
40
41
42
language: java
jdk:
- oraclejdk8
dist: trusty
node_js:
- '10'
services:
- mysql
env:
- MONGODB=3.4.3
matrix:
fast_finish: true
cache:
yarn: true
directories:
- node_modules
before_install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-${MONGODB}.tgz
- tar xzf mongodb-linux-x86_64-${MONGODB}.tgz
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --version
- pyenv global system 3.6
- pip3 install --user codecov
- nvm install 10.14.2
- npm install -g yarn
- yarn install
install:
- cd manage-gui && yarn install && cd ..
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
before_script:
- mkdir ${PWD}/mongodb-linux-x86_64-${MONGODB}/data
- ${PWD}/mongodb-linux-x86_64-${MONGODB}/bin/mongod --dbpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/data --logpath ${PWD}/mongodb-linux-x86_64-${MONGODB}/mongodb.log --fork
- mysql -e "create database IF NOT EXISTS eb; grant all on eb.* to 'root';" -uroot
script:
- mvn test
- cd manage-gui && yarn install && CI=true yarn test && yarn build
after_script:
- pkill mongod
after_success:
- codecov