forked from OxideMod/Oxide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 1.31 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
sudo: required
dist: trusty
language: csharp
mono: 4.4.2
# Install .NET v3.5 profile
before_install:
- sudo ln -s $TRAVIS_BUILD_DIR/Mono/2.0 /usr/lib/mono/2.0
- sudo ln -s $TRAVIS_BUILD_DIR/Mono/xbuild-frameworks/.NETFramework/v3.5 /usr/lib/mono/xbuild-frameworks/.NETFramework/v3.5
# Add build number to version
before_script:
- sed -ri "s/VersionNumber\((.*), 0\)/VersionNumber(\1, $TRAVIS_BUILD_NUMBER)/g" Oxide.Core/OxideMod.cs
- find . -name "*Extension.cs" -exec sed -ri "s/VersionNumber\((.*), 0\)/VersionNumber(\1, $TRAVIS_BUILD_NUMBER)/g" {} \;
- find . -name "*Core.cs" -exec sed -ri "s/VersionNumber\((.*), 0\)/VersionNumber(\1, $TRAVIS_BUILD_NUMBER)/g" {} \;
# Build the project
solution: Oxide.sln
# Run deployment script
after_success: "[[ $TRAVIS_REPO_SLUG == OxideMod/Oxide ]] && [[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_BRANCH == master ]] && ./deploy.sh"
notifications:
email: false
slack:
rooms:
secure: "YxvYLQsNQSnaFyjJa3c1Dx6CiXUYUs/70KNU9//y0fdI42RE0dxQ9XkneBU+k27oZjJY1RmkABPFM5z57ekvqhsUJmsRH1plOB0RToY8xZIuzTo+2H/nBh9mZFFnfQeW1AMglfQg++TZQ50iJDMHdjBFz1ii3jJU5ndD+JngzHM="
env:
global:
- secure: "BEngKR1+rqtJ8IebgFG4L10oB359jXW5hawOYSABs15h0ghIXfhY6jGlDwme0U5uV5SgMaRY2aOfKOu3tW5L3h8/pfo2Pk2vvpN+nyVhKWDD45o4iLFCjEOlbJF1u1SemLVv8To57q/2vqEzDdVkqKyAemt0MQJUMrOnEZxTPns="