Skip to content

Commit 1cf8880

Browse files
authored
Merge pull request #103 from progaudi/feature/update-samples-and-readme
Feature/update samples and readme
2 parents b539c65 + 5b3d9ca commit 1cf8880

33 files changed

+289
-262
lines changed

.travis.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
language: csharp
2-
31
matrix:
42
include:
53
- os: linux # Ubuntu 14.04
64
dist: trusty
75
sudo: required
8-
dotnet: 1.0.0-preview4-004233
9-
env: BUILD_NAME=linux
106
- os: linux # Ubuntu 14.04
117
dist: trusty
12-
sudo: required
13-
env: BUILD_NAME=docker
8+
env: BUILD_DOCKER=true
149
- os: osx # OSX 10.12
15-
osx_image: xcode7.3.1
16-
env: BUILD_NAME=osx
10+
osx_image: xcode8.2
1711

18-
services:
19-
- docker
12+
before_install:
13+
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_DOCKER" != true ]]; then sudo ./scripts/ubuntu-prereqs.sh ; fi
14+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./scripts/mac-prereqs.sh ; fi
2015

21-
before_script:
22-
- .travis/$BUILD_NAME/init.sh
16+
install:
17+
- if [[ "$BUILD_DOCKER" != true ]]; then ./scripts/dotnet-install.sh ; fi
18+
- if [[ "$BUILD_DOCKER" != true ]]; then PATH=$PATH:$HOME/.dotnet && export PATH ; fi
19+
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then docker-compose -f docker-compose.yml -f docker-compose.tests.yml up -d tarantool ; fi
20+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tarantool tarantool/tarantool.lua ; fi
2321

2422
script:
25-
- .travis/$BUILD_NAME/test.sh
26-
27-
after_script:
28-
- .travis/$BUILD_NAME/teardown.sh
23+
- if [[ "$BUILD_DOCKER" != true ]]; then ./scripts/build-netcore.sh ; fi
24+
- if [[ "$BUILD_DOCKER" != true ]]; then ./scripts/test-netcore.sh ; fi
25+
- if [[ "$BUILD_DOCKER" == true ]]; then docker-compose -f docker-compose.yml -f docker-compose.tests.yml up --build tarantool-client ; fi

.travis/docker/init.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis/docker/teardown.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis/docker/test.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

.travis/linux/init.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

.travis/linux/teardown.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis/osx/init.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

.travis/osx/teardown.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis/osx/test.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
FROM progaudi/dotnet:1.1-preview4
1+
FROM progaudi/dotnet:1.0.1-xenial
22

33
WORKDIR /app
4+
ENV PATH $PATH:/root/.dotnet
45

56
# copy csproj and restore as distinct layers
67
COPY . .
7-
RUN dotnet --version
8-
RUN dotnet restore
9-
RUN dotnet build -c Release -f netstandard1.4 src/progaudi.tarantool/progaudi.tarantool.csproj
10-
RUN dotnet build -c Release -f netcoreapp1.0 tests/progaudi.tarantool.tests/progaudi.tarantool.tests.csproj
8+
RUN /app/scripts/build-netcore.sh

0 commit comments

Comments
 (0)