-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
35 lines (35 loc) · 1015 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
language: csharp
sudo: required
services:
- docker
dist: trusty
mono: none
dotnet: 2.0.0
node_js: 8.6.0
env:
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
os:
- linux
before_script:
- npm install yarn [email protected] -g
- npm install -g create-react-app npm-run-all cpx node-sass-chokidar
- rm -rf $TRAVIS_BUILD_DIR/build/release
script:
- if test "$TRAVIS_OS_NAME" == "linux"; then dotnet restore; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cd $TRAVIS_BUILD_DIR/src/hosts/CRMCore.ClientApp;
yarn install;
yarn build;
cp -rfv build/* ../CRMCore.WebApp/wwwroot/;
cd $TRAVIS_BUILD_DIR/src/hosts/CRMCore.WebApp;
yarn install;
dotnet build;
yarn build;
dotnet publish -c Release -o ../../../build/release;
cd $TRAVIS_BUILD_DIR;
docker build -t crmcore/crm-linux:latest .;
docker login -u="$DOCKER_USER" -p="$DOCKER_PASS";
docker push crmcore/crm-linux;
fi;