-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
39 lines (38 loc) · 1.17 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
sudo: required
matrix:
include:
- language: java
services:
- docker
before_script:
- cd backend/
script:
- mvn package
- mvn sonar:sonar -Dsonar.projectKey=$Sonar_ProjectKey -Dsonar.organization=$Sonar_Org -Dsonar.host.url=https://sonarcloud.io/ -Dsonar.login=$Sonar_Login
after_success:
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- |
if [ $TRAVIS_BRANCH == "master" ];
then export DOCKER_BRANCH=master;
elif [ $TRAVIS_BRANCH == "development" ];
then export DOCKER_BRANCH=development;
else export DOCKER_BRANCH=branch;
fi
- docker build -t asegroup1/backend-$DOCKER_BRANCH:latest .
- docker push asegroup1/backend-$DOCKER_BRANCH:latest
- language: node_js
node_js:
- node
- lts/*
cache:
directories:
- ~/.npm
before_script:
- cd frontend/reactnative/
- npm install -g npm@latest
- npm install
script:
- npm ci
- npx expo login -u $Expo_User -p $Expo_password
- npx expo publish --non-interactive
- expo build:android